Spread 8.0 Documentation
SSGetMaxTextRowHeight Function
Support Options
DLL Reference > DLL Functions > SSGetMaxTextRowHeight Function

Glossary Item Box

SSGetMaxTextRowHeight Function


See Also    ActiveX

Applies To

fpSpread DLL control

Description

Returns the height of the tallest text string in the specified row.

Syntax

C

BOOL SSGetMaxTextRowHeight(HWND hWnd, SS_COORD Row, LPDOUBLE lpdfRowHeight);

C++

BOOL TSpread::GetMaxTextRowHeight(SS_COORD Row, LPDOUBLE lpdfRowHeight);

Parameters

This function has the following parameters:

Parameter Description
hWnd Window handle of the fpSpread control
Row Row number
lpdfRowHeight Pointer to variable that receives text height
(Value is in sheet coordinates.)

Remarks

This function is applied to the current sheet setting unless you first call the SSSetSheet function to specify the sheet for which you are calling this function.

You can pass the returned value to the SSSetRowHeight function to change the row height to reflect the tallest string.

Return Value

TRUE if the function completes successfully; FALSE otherwise.

See Also

Resizing a Cell to Fit the Tallest Data
Resizing Columns and Rows to Fit Text

SSGetMaxTextCellSize, SSGetMaxTextColWidth, SSSetRowHeight, SSSetSheet functions

ActiveX Correspondence

MaxTextRowHeight property

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