THPDFPage.TextWidth

THPDFPage

 

למעלה  הקודם  הבא

Returns the width, of a string rendered in the current font.

 

Delphi syntax:

function TextWidth ( const Text: AnsiString ): Single;

 

C++ syntax:

float __fastcall TextWidth ( AnsiString Text );

 

Description:

 

השתמש ב-TextWidth כדי לקבוע את האורך. TextWidth מציין אם string נתונה תתאים למקום הזמין. ניתן למקם רכיבים גרפיים אחרים כגון קווים או strings נוספות כך שיתאימו לרוחב הטקסט