Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSFMXCommon > FMX.RS.CanvasHelper > Classes > TFMXCanvasHelper > Methods

TFMXCanvasHelper.TextExtent(string) Method

Scroll Prev Top Next More

Returns the width and height, in pixels, of a string rendered in the current font.

Use TextExtent to determine the space a string will occupy in the image. Other elements in the image such as lines, boxes, or additional lines of text can be positioned to accommodate the size of the text. TextExtent returns the width and height of the rectangle that bounds the text on the canvas.

To check only the height, call TextHeight. To check only the width, call TextWidth.
 

Namespace: FMX.RS.CanvasHelper

Parameters

Text

Type: string

Return Value

Type: TSize

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb