Spread 8.0 Documentation
RowHeightToTwips, ScriptRowHeightToTwips Methods
Support Options
ActiveX Reference > ActiveX Methods > RowHeightToTwips, ScriptRowHeightToTwips Methods

Glossary Item Box

RowHeightToTwips, ScriptRowHeightToTwips Methods


See Also    DLL    Example

Applies To

fpSpread control

Description

Converts a row-height measurement to twips.

Syntax

C++

void CSpreadSheet::RowHeightToTwips (long Row, float Height, long* Twips);

Visual Basic

fpSpread.RowHeightToTwips(ByVal Row As Long, ByVal Height As Single, Twips As Long)

Note: The ScriptRowHeightToTwips 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
Height Height of row
Twips Height of row in twips

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 ScriptRowHeightToTwips method. ScriptRowHeightToTwips 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 row height in twips in the Twips parameter.

See Also

ColWidth, RowHeight, ScriptEnhanced, Sheet, UnitType properties

ColWidthToTwips, TwipsToColWidth, TwipsToRowHeight methods

DLL Correspondence

SSRowHeightToLogUnits function

Copyright © GrapeCity, inc. All rights reserved.