HotXLS 文件

StandardWidth 屬性

傳回或設定工作表中所有欄的標準(預設)寬度。讀/寫 Double

語法

property StandardWidth: Double;

備註

欄寬的一個單位等於標準樣式中一個字元的寬度。對於比例字型,使用字元 0(零)的寬度

範例

此範例將 Sheet1 第一欄的寬度設為標準寬度

With Workbook.Sheets[1] do begin
   Cells.Columns[1].ColumnWidth := StandardWidth;
end;