SpreadsheetGear 2023
ColumnWidth Property (IRange)
Example 


SpreadsheetGear Namespace > IRange Interface : ColumnWidth Property
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;}
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