Previous - xlsSetWinRect Section Home - Microsoft Excel Next - xlsSetColumnWidth


xlsColumnWidth ( )

Obtains the width of a particular column, in pixels

Usage:

xlsColumnWidth (object me, integer x )

Parameters:

x (integer) - cell column index

Returns:

(float) - the column width

Example:

xtRose = xtra("Rosetta").new( )
xtRose.xlsLaunch( )
xtRose.xlsOpen( "C:\myCalculations.xls", EMPTY )
nWidth = xtRose.xlsColumnWidth( 2 )

Notes:

Excel can obtains the width of a column in pixels, however Excel can only set the column width in a fixed character-width units. This means that the value used to set an Excel column will be different than the value used to obtain the Excel column.


Previous - xlsSetWinRect Section Home - Microsoft Excel Next - xlsSetColumnWidth