DrawRotatedTextBoxA
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 DrawRotatedTextBox and string arguments are interpreted using the current SetAnsiMode code page
Similar to the DrawTextBox function, but allows the text box to be rotated at any angle.
Syntax
Delphi
Function DLDrawRotatedTextBoxA(InstanceID: Integer; Left, Top, Width, Height, Angle: Double; Text: PAnsiChar; Options: Integer): Integer;
DLL
int DLDrawRotatedTextBoxA(int InstanceID, double Left, double Top, double Width, double Height, double Angle, const char* Text, int Options);
Parameters
| Left | The horizontal co-ordinate of the top-left corner of the text box |
|---|---|
| Top | The vertical co-ordinate of the top-left corner of the text box |
| Width | The width of the box |
| Height | The height of the box |
| Angle | The angle the box should be rotated around the top-left corner, measured anti-clockwise in degrees |
| Text | The text to place in the box |
| Options | 0 = Center vertical alignment 1 = Top vertical alignment 2 = Bottom vertical alignment 3 = Center vertical alignment, no wrapping 4 = Top vertical alignment, no wrapping 5 = Bottom vertical alignment, no wrapping |
Return values
| 0 | The Options parameter was out of range, or the Width parameter was too small to contain any text |
|---|---|
| Non-zero | The number of lines of text actually drawn |