DrawWrappedText

文字, 頁面版面配置

描述

繪製依指定寬度換行的文字。可用 SetTextAlign 函式改變文字對齊,用 SetBreakString 函式設定斷行分隔符;預設是 CR / LF 成對出現,某些系統上預設可能是 LF

語法

Delphi

Function TPDFlib.DrawWrappedText(XPos, YPos, Width: Double; Const Text: WideString): Integer;

ActiveX

Function PDFlib::DrawWrappedText(XPos As Double, YPos As Double, Width As Double, Text As String) As Long

DLL

int DLDrawWrappedText(int InstanceID, double XPos, double YPos, double Width, const wchar_t * Text);

參數

XPos文字區塊的左緣 第一行文字的基準線
YPos
Width文字區塊的寬度
TextThe text to draw