GetHTMLTextLineCount

テキスト、HTML テキスト

説明

HTML テキストのブロックを次を使用して描画した場合に必要となる行数を返します

DrawHTMLText 関数。対応する HTML タグの詳細は付録 A を参照

構文

Delphi

Function TPDFlib.GetHTMLTextLineCount(Width: Double; Const HTMLText: WideString): Integer;

ActiveX

Function PDFlib::GetHTMLTextLineCount(Width As Double, HTMLText As String) As Long

DLL

int DLGetHTMLTextLineCount(int InstanceID, double Width, const wchar_t* HTMLText);
int DLGetHTMLTextLineCountA(int InstanceID, double Width, const char* HTMLText);

パラメータ

Widthテキストを描画する領域の幅
HTMLText行数を判定する HTML テキスト

戻り値

指定された幅でDrawHTMLTextにより描画したときにHTMLテキストが占める行数を返します。Widthが正でない場合やHTMLTextが空の場合は0を返します。