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