## Worksheet::AutoFitRow(int32_t, int32_t, int32_t) method


Autofits the row height.

```cpp
void Aspose::Cells::Worksheet::AutoFitRow(int32_t rowIndex, int32_t firstColumn, int32_t lastColumn)
```


| Parameter | Type | Description |
| --- | --- | --- |
| rowIndex | int32_t | [Row](../../row/) index. |
| firstColumn | int32_t | First column index. |
| lastColumn | int32_t | Last column index. |
## Remarks



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

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


Autofits the row height.

```cpp
void Aspose::Cells::Worksheet::AutoFitRow(int32_t rowIndex, int32_t firstColumn, int32_t lastColumn, const AutoFitterOptions &options)
```


| Parameter | Type | Description |
| --- | --- | --- |
| rowIndex | int32_t | [Row](../../row/) index. |
| firstColumn | int32_t | First column index. |
| lastColumn | int32_t | Last column index. |
| options | const AutoFitterOptions\& | The auto fitter options |
## Remarks



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

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


Autofits row height in a rectangle range.

```cpp
void Aspose::Cells::Worksheet::AutoFitRow(int32_t startRow, int32_t endRow, int32_t startColumn, int32_t endColumn)
```


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

## See Also

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


Autofits the row height.

```cpp
void Aspose::Cells::Worksheet::AutoFitRow(int32_t rowIndex)
```


| Parameter | Type | Description |
| --- | --- | --- |
| rowIndex | int32_t | [Row](../../row/) index. |
## Remarks



AutoFitRow is an imprecise function.
## See Also

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