GetWrappedTextLineCount
テキスト, ページレイアウト
説明
現在のフォントとテキストサイズに基づき、特定の幅で折り返したテキストブロックが占める行数を求めます。SetBreakString 関数を使用して改行の区切り文字を設定できます。デフォルトは CR / LF の組み合わせです。一部のシステムでは LineFeed がデフォルトの場合があります
構文
Delphi
Function TPDFlib.GetWrappedTextLineCount(Width: Double; Const Text: WideString): Integer;
ActiveX
Function PDFlib::GetWrappedTextLineCount(Width As Double, Text As String) As Long
DLL
int DLGetWrappedTextLineCount(int InstanceID, double Width, const wchar_t * Text);
パラメータ
| Width | テキストを折り返すブロックの幅 |
|---|---|
| Text | 折り返すテキスト |
戻り値
| 行数 |