TextField.
Gets the name of a font being used in a rich edit control.
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. |
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.
Verify(MyDialog.RichEdit1.GetFontName(4, 1), "Arial")
This function is available only in Windows, providing support for the RichEdit control.