SpreadsheetGear 2017
ColumnWidth Property (IRange)

SpreadsheetGear Namespace > IRange Interface : ColumnWidth Property
Gets or sets the width of the individual columns represented this range in characters.
Property ColumnWidth As System.Double
Dim instance As IRange
Dim value As System.Double
instance.ColumnWidth = value
value = instance.ColumnWidth
System.double ColumnWidth {get; set;}
read-write property ColumnWidth: System.Double; 
function get,set ColumnWidth : System.double
__property System.double get_ColumnWidth();
__property void set_ColumnWidth( 
   System.double value
property System.double ColumnWidth {
   System.double get();
   void set (    System.double value);
The default font is used to determine the width of a character.
range.ColumnWidth = 10.5; // Set column width to 10.5 characters.
range.ColumnWidth = 10.5 ' Set column width to 10.5 characters.

Target Platforms: Windows 7, 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


IRange Interface
IRange Members
RowHeight Property
AutoFit Method