---
title: "number_of_columns property"
url: "https://reference.aspose.com/cells/python-net/aspose.cells.slicers/slicer/number_of_columns/"
product: "Aspose.Cells for Python via .NET API References"
---


## number_of_columns property


Returns or sets the number of columns in the specified slicer.

### Example 


```python

slicer.number_of_columns = 1

```
### Definition:
```python
@property
def number_of_columns(self):
    ...
@number_of_columns.setter
def number_of_columns(self, value):
    ...
```

### See Also
* module [`aspose.cells.slicers`](../../)
* class [`Slicer`](/cells/python-net/aspose.cells.slicers/slicer)
