HotXLS-dokumentation

ColumnWidth egenskab

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

Syntaks

property ColumnWidth: OleVariant;

Bemærkninger

Én enhed kolonnebredde svarer til bredden af ét tegn i typografien Normal. For proportionale skrifttyper bruges bredden af tegnet 0 (nul)

Eksempel

This example doubles the width of column A on sheet one

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