GetHTMLTextWidth

テキスト、HTML テキスト

説明

最大幅に折り返した HTML テキストブロックの実際の水平サイズを返します

DrawHTMLText 関数による幅。サポートされる HTML タグの詳細は付録 A を参照してください

構文

Delphi

Function TPDFlib.GetHTMLTextWidth(MaxWidth: Double; Const HTMLText: WideString): Double;

ActiveX

Function PDFlib::GetHTMLTextWidth(MaxWidth As Double, HTMLText As String) As Double

DLL

double DLGetHTMLTextWidth(int InstanceID, double MaxWidth, const wchar_t* HTMLText);
double DLGetHTMLTextWidthA(int InstanceID, double MaxWidth, const char* HTMLText);

パラメータ

MaxWidthテキストを描画する領域の幅
HTMLText幅を決定する対象の HTML テキスト

戻り値

MaxWidthで折り返したときのHTMLテキストの実際の水平方向の広がりを、文書の現在の測定単位で返します。MaxWidthが正でない場合やHTMLTextが空の場合は0を返します。