DrawRotatedTextBoxEx

文字, 頁面版面配置

描述

類似 DrawRotatedTextBoxEx 函式,但可讓文字框顯示框線

語法

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);

參數

Left

文字框左上角的水平座標

Top

文字框左上角的垂直座標

Width

The width of the box

Height

The height of the box

文字框繞左上角旋轉的角度,以度為單位、逆時針量測

Angle

Text

要畫到頁面上的文字

0 = 垂直置中對齊

1 = 垂直向上對齊

2 = 垂直向下對齊

3 = 垂直置中對齊,不自動換行

4 = 垂直向上對齊,不自動換行

5 = 垂直向下對齊,不自動換行

Options

Border

0 = No Border

1 = Border

2 = 圓角框線

圓角弧的半徑

Radius

DrawOptions

0 = Outline

1 = Fill

2 = Fill and outline

傳回值

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