DrawRotatedTextBox

Text, Page layout

Description

Similar to the DrawTextBox function, but allows the text box to be rotated at any angle.

Syntax

Delphi

function TPDFlib.DrawRotatedTextBox(Left, Top, Width, Height, Angle: Double; Const Text: WideString; Options: Integer): Integer;

ActiveX

Function PDFlib::DrawRotatedTextBox(Left As Double, Top As Double, Width As Double, Height As Double, Angle As Double, Text As String, Options As Long) As Long

DLL

int DLDrawRotatedTextBox(int InstanceID, double Left, double Top, double Width, double Height, double Angle, wchar_t * Text, int Options);

Parameters

LeftThe horizontal co-ordinate of the top-left corner of the text box
TopThe vertical co-ordinate of the top-left corner of the text box
WidthThe width of the box
HeightThe height of the box
AngleThe angle the box should be rotated around the top-left corner, measured anti-clockwise in degrees
TextThe text to place in the box
Options0 = 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

0The Options parameter was out of range, or the Width parameter was too small to contain any text
Non-zeroThe number of lines of text actually drawn int Options);