See Also

IRange Interface  | IRange Members

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

C++

C++/CLI

Show All

See Also Languages SpreadsheetGear The Performance Spreadsheet Component Company 

ColumnWidth Property

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); }

Remarks

The default font is used to determine the width of a character.

Example

[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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

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.