GetWrappedTextHeightA
Text, Page layout
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to GetWrappedTextHeight and string arguments are interpreted using the current SetAnsiMode code page
Get the height of a block of text wrapped to a certain width, based on the current font and text size. The SetBreakString function can be used to set the delimiter for the linebreak. The default is a CR/LF pair. On some systems a LineFeed may be default
Syntax
Delphi
Function DLGetWrappedTextHeightA(InstanceID: Integer; Width: Double; Text: PAnsiChar): Double;
DLL
double DLGetWrappedTextHeightA(int InstanceID, double Width, const char * Text);
Parameters
| Width | The width of the block to wrap the text to |
|---|---|
| Text | The text to wrap |
Return values
| Returns the height of the text block |