SpreadsheetGear Namespace > IRange Interface : ColumnWidth Property |
Gets or sets the width of the individual columns represented this range in characters.
[Visual Basic]
Overridable Property ColumnWidth As Double
[C#]
virtual double ColumnWidth {get; set;}
[C++]
__property virtual double get_ColumnWidth();
__property virtual void set_ColumnWidth(
double value
);
[C++/CLI]
virtual property double ColumnWidth {
double get();
void set (double value);
}
The default font is used to determine the width of a character.
[C#]
range.ColumnWidth = 10.5; // Set column width to 10.5 characters.
[Visual Basic]
range.ColumnWidth = 10.5 ' Set column width to 10.5 characters.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
IRange Interface | IRange Members
See our live Excel Reporting, Excel Charting, Excel to DataGrid and Excel Calculation Samples.
Copyright © 2003-2007 SpreadsheetGear LLC. All Rights Reserved.
SpreadsheetGear and Spreadsheet Gear are trademarks of SpreadsheetGear LLC.