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テキストボックス左上隅の垂直座標
Widthボックスの幅
Heightボックスの高さ
Angleボックスを左上隅を中心に反時計回りで回転させる角度
Textボックスに配置するテキスト
Options0 = 垂直方向中央揃え 1 = 垂直方向上揃え 2 = 垂直方向下揃え 3 = 垂直方向中央揃え、折り返しなし 4 = 垂直方向上揃え、折り返しなし 5 = 垂直方向下揃え、折り返しなし

戻り値

0Options パラメーターが範囲外であるか、Width パラメーターがテキストを含めるには小さすぎます
Non-zero実際に描画されたテキストの行数 int Options);