THPDFPage.WideTextOutBox Method

 

宣告

function WideTextOutBox(X, Y, LineSpacing, BoxWidth, BoxHeight: Integer; Text: WideString; Align: THPDFJustificationType): Integer;

單元

THPDFPage.WideTextOutBoxHPDFDoc

參數

名稱說明
X, Y文字框左上角座標(使用者空間單位)
LineSpacing行間距(使用者空間單位)
BoxWidth文字框寬度(使用者空間單位)
BoxHeight文字框高度(使用者空間單位)
Text要输出的 Unicode 文字
Align对齐方式(jtLeft、jtCenter、jtRight、jtJustified)
// 在 200×300 的文本框内左对齐输出中文段落 var Placed: Integer; begin Placed := HPDF.CurrentPage.WideTextOutBox( 30, 700, 16, 200, 300, WideString('这是一段中文测试文字,将在文本框内自动换行并正确处理 CJK 字符间距。'), jtLeft); end;WideTextOutBox 所使用的輸入

回傳值

Returns an Integer value

使用說明

相關 API