Version

DefaultColumnWidth Property

Gets or sets the default column width including padding, in 256ths of the '0' digit character width in the workbook's default font.
Syntax
'Declaration
 
Public Property DefaultColumnWidth As Integer
public int DefaultColumnWidth {get; set;}

Property Value

The default column width including padding, in 256ths of the '0' digit character width in the workbook's default font.
Remarks

The default column width is the width of all columns which do not have their width set.

The value assigned must be between 0 and 65535. Invalid values will be automatically adjusted to valid values.

Setting or getting this property is equivalent to calling SetDefaultColumnWidth(Double,WorksheetColumnWidthUnit) or GetDefaultColumnWidth using the WorksheetColumnWidthUnit value of Character256th.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also