Skip to main content
A newer version of this page is available.
All docs
V18.2
Row

RangeExtensions.AutoFitRows(Range) Method

Adjusts the height of rows that comprise the cell range to accommodate the cell content of this range.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v18.2.Core.dll

Declaration

public static void AutoFitRows(
    this Range range
)

Parameters

Name Type Description
range Range

A Range object specifying the cell range comprising rows to be automatically resized.

Remarks

The AutoFitRows method is an extension method of the Range object that is called by using the instance method syntax.

The RowCollection.AutoFit and Row.AutoFit methods automatically adjust the row height to fit the cell content of entire rows.

To set row height values in required units of measurement, use the Row.Height or Range.RowHeight property (see the How to: Specify Row Height or Column Width example).

See Also