GetWrappedTextBreakString

テキスト

説明

GetWrappedText 関数に似ていますが、テキストに元から含まれる改行文字列を保持します。これはページ上の異なる領域にテキストを分割する場合に便利です

構文

Delphi

Function TPDFlib.GetWrappedTextBreakString(Width: Double; Const Delimiter, Text: WideString): WideString;

ActiveX

Function PDFlib::GetWrappedTextBreakString(Width As Double, Delimiter As String, Text As String) As String

DLL

const wchar_t* DLGetWrappedTextBreakString(int InstanceID, double Width, const wchar_t* Delimiter, const wchar_t* Text);
const char* DLGetWrappedTextBreakStringA(int InstanceID, double Width, const char* Delimiter, const char* Text);

パラメータ

Widthテキストを折り返す幅
Delimiter折り返された行の間で使用する区切り文字
Text折り返すテキスト

戻り値

テキストを指定された幅で折り返し、折り返し部分の間にDelimiterを挿入して返します。Textに既に含まれていた改行文字列はそのまま維持されます。Widthがどのテキストに対しても小さすぎる場合や、選択中のフォントが欠落グリフで中断する場合は空文字列を返します。