SpreadsheetGear 2012
ColumnWidth Property (IRange)
Example 






Gets or sets the width of the individual columns represented this range in characters.
Syntax
'Declaration
 
Property ColumnWidth As System.Double
'Usage
 
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);
}
Remarks
The default font is used to determine the width of a character.
Example
range.ColumnWidth = 10.5; // Set column width to 10.5 characters.
range.ColumnWidth = 10.5 ' Set column width to 10.5 characters.
Requirements

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

Reference

IRange Interface
IRange Members
RowHeight Property
AutoFit Method

Send Feedback