Sign in Join
FPDoc Onlineexperiment

TCanvas.TextHeight function

Member of TCanvaspublicIn unit Graphics

Gets the height for the specified text using the canvas Font.

Declaration

pascal
function TextHeight(const Text: string): Integer; virtual
 ; reintroduce

Arguments

Text

Text measured in the method.

Function result

Height for the specified text (in pixels).

Description

Calls TextExtent to get the TSize instance with the return value for the method.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.