
## auto_fit_column(self, column_index) {#int}

Autofits the column width.



```python

def auto_fit_column(self, column_index):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| column_index | int | Column index. |
### Remarks

AutoFitColumn is an imprecise function.

## auto_fit_column(self, column_index, first_row, last_row) {#int-int-int}

Autofits the column width.



```python

def auto_fit_column(self, column_index, first_row, last_row):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| column_index | int | Column index. |
| first_row | int | First row index. |
| last_row | int | Last row index. |
### Remarks

This method autofits a row based on content in a range of cells within the row.


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