GetTextFontName

Description

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

Applies to

RichTextEdit controls

Syntax

rtename.GetTextFontName ()

Argument

Description

rtename

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


Return value

String.

Returns the font name if it succeeds and returns an empty string if the selected text contains more than one font.

Examples

This example stores a string representing the font name of the selected text in RichTextEdit rte_1:

string ls_rtn
ls_rtn = rte_1.GetTextFontName()

See also

SetTextFontName

GetTextFontSize

SetTextFontSize