SSGetMaxTextRowHeight Function
Applies To
fpSpread DLL control
Description
Returns the height of the tallest text string in the specified row.
Syntax
BOOL SSGetMaxTextRowHeight(HWND hWnd, SS_COORD Row, LPDOUBLE lpdfRowHeight);
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