Spread 8.0 Documentation
TwipsToColWidth, ScriptTwipsToColWidth Methods
Support Options
ActiveX Reference > ActiveX Methods > TwipsToColWidth, ScriptTwipsToColWidth Methods

Glossary Item Box

TwipsToColWidth, ScriptTwipsToColWidth Methods


See Also    DLL    Example

Applies To

fpSpread control

Description

Converts a twips measurement to a column-width measurement.

Syntax

C++

void CSpreadSheet::TwipsToColWidth (long Twips, float* ColWidth);

Visual Basic

fpSpread.TwipsToColWidth(ByVal Twips As Long, ColWidth As Single)

Note: The ScriptTwipsToColWidth 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
Twips Twips measurement
ColWidth Column-width measurement

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 ScriptTwipsToColWidth method. ScriptTwipsToColWidth method parameters that are not passed "ByVal" are declared as variants.

Remarks

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.

Return Type

Returns the column-width measurement in the ColWidth parameter.

See Also

ColWidth, RowHeight, ScriptEnhanced, Sheet, UnitType properties

ColWidthToTwips, RowHeightToTwips, TwipsToRowHeight methods

DLL Correspondence

SSLogUnitsToColWidth function

Copyright © GrapeCity, inc. All rights reserved.