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
框的宽度
Height
框的高度
框应围绕左上角逆时针旋转的角度,以度为单位
Angle
Text
要在页面上绘制的文本
0 = 垂直居中对齐
1 = 顶部垂直对齐
2 = 底部垂直对齐
3 = 垂直居中对齐,不换行
4 = 顶部垂直对齐,不换行
5 = 底部垂直对齐,不换行
Options
Border
0 = 无边框
1 = 边框
2 = 圆角边框
角弧半径
Radius
DrawOptions
0 = 描边
1 = 填充
2 = 填充和描边
返回值
| 0 | Options 参数超出范围,或 Width 参数过小而无法容纳任何文本 |
|---|---|
| Non-zero | 实际绘制的文本行数 int Options, int Border, int Radius, int DrawOptions); |