DrawRotatedTextBox

文字, 頁面版面配置

描述

類似 DrawTextBox 函式,但文字框可以任意角度旋轉

語法

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, const wchar_t * Text, int Options);

參數

Left文字框左上角的水平座標
Top文字框左上角的垂直座標
WidthThe width of the box
HeightThe height of the box
Angle文字框繞左上角旋轉的角度,以度為單位、逆時針量測
Text要放進框內的文字
Options0 = 垂直置中對齊 1 = 垂直向上對齊 2 = 垂直向下對齊 3 = 垂直置中對齊,不自動換行 4 = 垂直向上對齊,不自動換行 5 = 垂直向下對齊,不自動換行

傳回值

0Options 參數超出範圍,或 Width 參數小到放不下任何文字
Non-zero實際繪製的文字行數 int Options);