HotXLS Docs

ColumnWidth property

Returns or sets the width of all columns in the specified range. Read/write OleVariant.

Syntax

property ColumnWidth: OleVariant;

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 doubles the width of column A on sheet one.

With Workbook.Sheets[1].Range['A1', 'A1'] do
begin
  ColumnWidth := ColumnWidth * 2;
end;