Forums     Knowledge Base     OfficeWriter Online     
 
This documentation is for
OfficeWriter v3.0.4
.NET Platform

View Docs for Another
Version or Platform

Programmer's Reference > ExcelApplication API > Area > GetColumnWidth

GetColumnWidth Method



Signature:

public double GetColumnWidth ( int columnIndex )

Description:

Returns the width - in points (1/72 of an inch) - of the specified column. When converted to character widths, this must be a value that is between 0 - 255.

Parameters:

columnIndex     The column's 0-based index, relative to the first column in the Area.

Returns:

double

The width of the column, in points.

Examples:

[csharp]
double colWidth = a.GetColumnWidth(0);
[vbnet]
Dim colWidth As Double = a.GetColumnWidth(0)



Copyright 2005 © SoftArtisans, Inc. All Rights Reserved.