Spread 8.0 Documentation
ColWidthToTwips, ScriptColWidthToTwips Methods
Support Options
ActiveX Reference > ActiveX Methods > ColWidthToTwips, ScriptColWidthToTwips Methods

Glossary Item Box

ColWidthToTwips, ScriptColWidthToTwips Methods


See Also    DLL    Example

Applies To

fpSpread control

Description

Converts a column-width measurement to twips.

Syntax

C++

void CSpreadSheet::ColWidthToTwips (float Width, long* Twips);

Visual Basic

fpSpread.ColWidthToTwips(ByVal Width As Single, Twips As Long)

Note: The ScriptColWidthToTwips method uses the same syntax except method parameters that are not passed "ByVal" are declared as variants. For more information on Script methods, see Scripting Environment Usage.

Parameters

The following parameters are available:

Parameter Description
Width Width of column
Twips Width of column returned in twips

Remarks

The value returned by the ColWidthToTwips method includes the width of the adjacent grid line.

This method is called for the current sheet setting unless you first set the Sheet property to specify the sheet with which you want to work.

Note: Call this method if you use the Spread control in a scripting environment (for example, Microsoft's Visual InterDev or Internet Explorer) or a non-scripting environment. However, if you want to use the Spread control in a scripting environment and you want to change any parameter that is not passed "ByVal", you must set the ScriptEnhanced property to True and call the ScriptColWidthToTwips method. ScriptColWidthToTwips method parameters that are not passed "ByVal" are declared as variants.

Return Type

Returns the column width in twips in the Twips parameter.

See Also

ColWidth, RowHeight, Sheet, UnitType properties

RowHeightToTwips, TwipsToColWidth, TwipsToRowHeight methods

ScriptEnhanced property

DLL Correspondence

SSColWidthToLogUnits function

Copyright © GrapeCity, inc. All rights reserved.