GetFontSize Function

Class

TextField.

Action

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

Availability

This function is available only in Windows, providing support for the RichEdit control, and only in scripts that use the Classic Agent.

Syntax

iSize = textfield.GetFontSize ([iLine, iCol])
Variable Description
iSize The point size of the font. INTEGER.
iLine Optional: The line number of the character whose font size is being retrieved. INTEGER.
iCol Optional: The column number of the character whose font size is being retrieved. INTEGER.

Notes

GetFontSize returns the point size of a font being used in a rich edit control.

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

If iLine and iCol are supplied, then GetFontSize returns the point size of the font in which the specified character is displayed.

Example

Verify(MyDialog.RichEdit1.GetFontSize(4, 1), 12)