
## auto_fit_columns(self) {#}

Autofits all columns in this worksheet.



```python

def auto_fit_columns(self):
    ...
```




## auto_fit_columns(self, options) {#aspose.cells.AutoFitterOptions}

Autofits all columns in this worksheet.



```python

def auto_fit_columns(self, options):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| options | aspose.cells.AutoFitterOptions | The auto fitting options |


## auto_fit_columns(self, first_column, last_column) {#int-int}

Autofits the columns width.



```python

def auto_fit_columns(self, first_column, last_column):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| first_column | int | First column index. |
| last_column | int | Last column index. |
### Remarks

AutoFitColumn is an imprecise function.

## auto_fit_columns(self, first_column, last_column, options) {#int-int-aspose.cells.AutoFitterOptions}

Autofits the columns width.



```python

def auto_fit_columns(self, first_column, last_column, options):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| first_column | int | First column index. |
| last_column | int | Last column index. |
| options | aspose.cells.AutoFitterOptions | The auto fitting options |
### Remarks

AutoFitColumn is an imprecise function.

## auto_fit_columns(self, first_row, first_column, last_row, last_column) {#int-int-int-int}

Autofits the columns width.



```python

def auto_fit_columns(self, first_row, first_column, last_row, last_column):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| first_row | int | First row index. |
| first_column | int | First column index. |
| last_row | int | Last row index. |
| last_column | int | Last column index. |
### Remarks

AutoFitColumn is an imprecise function.

## auto_fit_columns(self, first_row, first_column, last_row, last_column, options) {#int-int-int-int-aspose.cells.AutoFitterOptions}

Autofits the columns width.



```python

def auto_fit_columns(self, first_row, first_column, last_row, last_column, options):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| first_row | int | First row index. |
| first_column | int | First column index. |
| last_row | int | Last row index. |
| last_column | int | Last column index. |
| options | aspose.cells.AutoFitterOptions | The auto fitting options |
### Remarks

AutoFitColumn is an imprecise function.


### See Also
* module [`aspose.cells`](../../)
* class [`Worksheet`](/cells/python-net/aspose.cells/worksheet)
