Gets or sets the standard (default) width of all the columns in the worksheet.
[Visual Basic] Property StandardWidth As Double [C#] double StandardWidth { get; set; } [C++] __property double get_StandardWidth(); __property void set_StandardWidth(double ); [JScript] function get StandardWidth() : double function set StandardWidth(double);
Double. Standard (default) width of all the columns in the worksheet. 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.
This example sets the width of column one on Sheet1 to the standard width.
[C#]
IWorksheet sheet = book.Worksheets["Sheet1"];
sheet.Cells.Columns[1].ColumnWidth = sheet.StandardWidth;
[Visual Basic]
Dim sheet As IWorksheet = book.Worksheets("Sheet1")
sheet.Cells.Columns(1).ColumnWidth = sheet.StandardWidth
[C++]
IWorksheet* sheet = book->Worksheets->Item[S"Sheet1"];
sheet->Cells->Columns->Item[1]->ColumnWidth = sheet->StandardWidth;
IWorksheet Interface | NativeExcel Namespace | StandardHeight Property