The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
Row

Column.AutoFit() Method

Adjusts the column width to accommodate cell content.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v19.1.Core.dll

Declaration

void AutoFit()
Sub AutoFit
void AutoFit()
Sub AutoFit

Remarks

To automatically fit the width of several columns to the content, use the ColumnCollection.AutoFit method.

To set the column width value in required units of measurement, use the Column.Width, Column.WidthInCharacters or Column.WidthInPixels property (see the How to: Specify Row Height or Column Width example).

See Also