FMX.Graphics.TCanvas.TextHeight
Delphi
function TextHeight(const AText: string): Single;
C++
float __fastcall TextHeight(const System::UnicodeString AText);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Graphics.pas FMX.Graphics.hpp |
FMX.Graphics | TCanvas |
Description
Returns the height, in pixels, of a string rendered in the current Font.
Use TextHeight to determine the amount of vertical space required to display the text on the TCanvas. The returned value includes the normal leading space above and below the text TCanvas. Other elements in the TCanvas, such as lines, boxes, or additional lines of text, can be positioned to accommodate the height of the text.