GetHTMLTextHeight

Testo, testo HTML

Descrizione

Restituisce l'altezza occupata da un blocco HTML sulla pagina, incluse righe Flexbox, tracce Grid e aree delle note a piè di pagina

Per i dettagli sui tag HTML e sulle proprietà CSS supportati, vedere l'Appendice A

Sintassi

Delphi

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

ActiveX

Function PDFlib::GetHTMLTextHeight(Width As Double, HTMLText As String) As Double

DLL

double DLGetHTMLTextHeight(int InstanceID, double Width, const wchar_t* HTMLText);
double DLGetHTMLTextHeightA(int InstanceID, double Width, const char* HTMLText);

Parametri

WidthLa larghezza dell'area in cui verrebbe disegnato il testo
HTMLTextHTML di cui determinare l'altezza. Per i dettagli sui tag HTML supportati, vedere l'Appendice A

Valori restituiti

Restituisce l'altezza che il testo HTML occuperà quando disegnato con DrawHTMLText, espressa nelle unità di misura correnti del documento. Restituisce 0 quando Width non è positivo o HTMLText è vuoto.