
## auto_fit_rows(self) {#}

Autofits all rows in this worksheet.



```python

def auto_fit_rows(self):
    ...
```




## auto_fit_rows(self, only_auto) {#bool}

Autofits all rows in this worksheet.



```python

def auto_fit_rows(self, only_auto):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| only_auto | bool | True,only autofits the row height when row height is not customed. |


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

Autofits all rows in this worksheet.



```python

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


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


## auto_fit_rows(self, start_row, end_row) {#int-int}

Autofits row height in a range.



```python

def auto_fit_rows(self, start_row, end_row):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| start_row | int | Start row index. |
| end_row | int | End row index. |


## auto_fit_rows(self, start_row, end_row, options) {#int-int-aspose.cells.AutoFitterOptions}

Autofits row height in a range.



```python

def auto_fit_rows(self, start_row, end_row, options):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| start_row | int | Start row index. |
| end_row | int | End row index. |
| options | aspose.cells.AutoFitterOptions | The options of auto fitter. |



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