Sign in Join
FPDoc Onlineexperiment

TCanvas.TextWidth function

Member of TCanvaspublicIn unit Graphics

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

Declaration

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

Arguments

Text

Text measured in the method.

Function result

Width 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.