Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Worksheet.DefaultColumnWidthInCharacters Property

Gets or sets the default column width in characters of the default font specified by the built-in Normal style.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

float DefaultColumnWidthInCharacters { get; set; }

#Property Value

Type Description
Single

A Double value that is the number of characters that can be accommodated in a column width when a column is formatted with the built-in Normal style.

#Remarks

Use the DefaultColumnWidthInCharacters, Worksheet.DefaultColumnWidthInPixels or Worksheet.DefaultColumnWidth property to set the width of worksheet columns whose width is not specified explicitly. If you need to set the width of all columns on the worksheet to the same value and override all previously applied column width settings, use the CellRange.ColumnWidthInCharacters property of the Row object corresponding to any row on a worksheet.

For more information on how to change the height of rows and the width of columns, see the How to: Specify Row Height or Column Width example.

See Also