## Worksheet::AutoFitRows() method


Autofits all rows in this worksheet.

```cpp
void Aspose::Cells::Worksheet::AutoFitRows()
```

## See Also

* Class [Vector](../../vector/)
* Class [Worksheet](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## Worksheet::AutoFitRows(bool) method


Autofits all rows in this worksheet.

```cpp
void Aspose::Cells::Worksheet::AutoFitRows(bool onlyAuto)
```


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

## See Also

* Class [Vector](../../vector/)
* Class [Worksheet](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## Worksheet::AutoFitRows(const AutoFitterOptions\&) method


Autofits all rows in this worksheet.

```cpp
void Aspose::Cells::Worksheet::AutoFitRows(const AutoFitterOptions &options)
```


| Parameter | Type | Description |
| --- | --- | --- |
| options | const AutoFitterOptions\& | The auto fitter options |

## See Also

* Class [Vector](../../vector/)
* Class [AutoFitterOptions](../../autofitteroptions/)
* Class [Worksheet](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## Worksheet::AutoFitRows(int32_t, int32_t) method


Autofits row height in a range.

```cpp
void Aspose::Cells::Worksheet::AutoFitRows(int32_t startRow, int32_t endRow)
```


| Parameter | Type | Description |
| --- | --- | --- |
| startRow | int32_t | Start row index. |
| endRow | int32_t | End row index. |

## See Also

* Class [Vector](../../vector/)
* Class [Worksheet](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## Worksheet::AutoFitRows(int32_t, int32_t, const AutoFitterOptions\&) method


Autofits row height in a range.

```cpp
void Aspose::Cells::Worksheet::AutoFitRows(int32_t startRow, int32_t endRow, const AutoFitterOptions &options)
```


| Parameter | Type | Description |
| --- | --- | --- |
| startRow | int32_t | Start row index. |
| endRow | int32_t | End row index. |
| options | const AutoFitterOptions\& | The options of auto fitter. |

## See Also

* Class [Vector](../../vector/)
* Class [AutoFitterOptions](../../autofitteroptions/)
* Class [Worksheet](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
