IGxGraphics.MeasureTextRF

Syntax

MeasureTextRF(Text: String; Font: IGxFont; Rect: IGxRectF; Format: IGxStringFormat): IGxRectF;

Parameters

Text. Text.

Font. Text font.

Rect. Rectangle that sets maximum layout area for the text. If the rectangle with the null sizes is set, it calculates the area that the specified text occupies in accordance with the specified parameters.

Format. Text format.

Description

The MeasureTextRF method calculates the size of the text with the specified format.

Example

The example of use is given in description of the IGxGraphics.DrawTextR, IGxGraphics.DrawTextRF methods.

See also:

IGxGraphics