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

TCanvas.TextExtent

Calculates the size for the specified Text using the canvas Font.

Declaration

Source position: graphics.pp line 1135

public function TCanvas.TextExtent(

  const Text: string

):TSize; virtual;

Arguments

Text

  

Text examined and measured in the method.

Function result

TSize instance with the Width and Height for the text.