Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32🞂TBitmap32🞂TextWidthMethodPublic

TBitmap32.TextWidth

Returns the width in pixels of a text string when rendered using current Font.

Declaration ​

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

Parameters ​

ParameterTypeDescription
TextstringText string to measure.

Returns ​

TypeDescription
IntegerWidth in pixels.

Description ​

TextWidth returns the horizontal extent (width) in pixels required to render Text using the bitmap's current Font.

See also ​