HotXLS Delphi Excel Read Write Library / Component Developers Guide loslab Inc.

StandardWidth property

Returns or sets the standard (default) width of all the columns in the Worksheet. Read/write Double.

Syntax

property StandardWidth: Double;

Remarks

One unit of column width is equal to the width of one character in the Normal style. For proportional fonts, the width of the character 0 (zero) is used.

Example

This example sets the width of column one on Sheet1 to the standard width.

With Workbook.Sheets[1] do begin
   Cells.Columns[1].ColumnWidth := StandardWidth;
end;
Copyright©2007-2019 loslab.com