Spread 8.0 Documentation
TwipsToRowHeight, ScriptTwipsToRowHeight Methods
Support Options
ActiveX Reference > ActiveX Methods > TwipsToRowHeight, ScriptTwipsToRowHeight Methods

Glossary Item Box

TwipsToRowHeight, ScriptTwipsToRowHeight Methods


See Also    DLL    Example

Applies To

fpSpread control

Description

Converts a twips measurement to a row-height measurement.

Syntax

C++

void CSpreadSheet::TwipsToRowHeight (long Row, long Twips, float* RowHeight);

Visual Basic

fpSpread.TwipsToRowHeight(ByVal Row As Long, ByVal Twips As Long, RowHeight As Single)

Note: The ScriptTwipsToRowHeight 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
Row Row number
Twips Twips measurement
RowHeight Row height 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 ScriptTwipsToRowHeight method. ScriptTwipsToRowHeight 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

None

See Also

ColWidth, RowHeight, ScriptEnhanced, Sheet, UnitType properties

ColWidthToTwips, RowHeightToTwips, TwipsToColWidth methods

DLL Correspondence

SSLogUnitsToRowHeight function

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.