GetFontName Function

Class

TextField.

Action

Gets the name of a font being used in a rich edit control.

Syntax

sFont = textfield.GetFontName ([iLine, iCol])
Variable Description
sFont The name of the font. STRING.
iLine Optional: The line number of the character whose font name is being retrieved. The Open Agent always ignores this value regardless of what is specified in the script. INTEGER.
iCol Optional: The column number of the character whose font name is being retrieved. INTEGER.

Notes

GetFontName returns the name of a font being used in a rich edit control.

If the optional iLine and iCol arguments are not specified, then GetFontName returns the name of the font being used for newly inserted characters.

If iLine and iCol are supplied, then GetFontName returns the name of the font in which the specified character is displayed.

Example

Verify(MyDialog.RichEdit1.GetFontName(4, 1), "Arial")

Availability

This function is available only in Windows, providing support for the RichEdit control.