DrawRotatedTextBoxEx
Text, Page layout
Description
Similar to the DrawRotatedTextBoxEx function, but allows the text box to show borders.
Syntax
Delphi
Function TPDFlib.DrawRotatedTextBoxEx(Left, Top, Width, Height, Angle: Double; Const Text: WideString; Options: Integer; Border, Radius, DrawOptions: Integer): Integer;
ActiveX
Function PDFlib::DrawRotatedTextBoxEx(Left As Double, Top As Double, Width As Double, Height As Double, Angle As Double, Text As String, Options As Long, Border As Long, Radius As Long, DrawOptions As Long) As Long
DLL
int DLDrawRotatedTextBoxEx(int InstanceID, double Left, double Top, double Width, double Height, double Angle, const wchar_t * Text, int Options, int Border, int Radius, int DrawOptions);
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
The angle the box should be rotated around the top-left corner, measured anti-clockwise in degrees
Angle
Text
The text to draw on the page
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
Options
Border
0 = No Border
1 = Border
2 = Border with rounded corners
Radius of the corner arcs
Radius
DrawOptions
0 = Outline
1 = Fill
2 = Fill and outline
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 int Options, int Border, int Radius, int DrawOptions); |