[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Graphics' (#lcl)

TCanvas.TextHeight

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

Declaration

Source position: graphics.pp line 1168

public function TCanvas.TextHeight(

  const Text: string

):Integer; virtual;

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.


Version 3.2 Generated 2024-02-25 Home