GetTextFontSize

Description

Gets the font size of the current text or the selected text in a RichTextEdit control.

Applies to

RichTextEdit controls

Syntax

rtename.GetTextFontSize ()

Argument

Description

rtename

The name of the RichTextEdit control in which you want to get the font size


Return value

Integer.

Returns 1 if it succeeds and and returns 0 if the selected text contains more than one font size.

Examples

This example stores an integer representing the font size of the text in RichTextEdit rte_1:

integer li_rtn
li_rtn = rte_1.GetTextFontSize()

See also

GetTextFontName

SetTextFontName

SetTextFontSize