GetCharForeground Function (JavaSwtRichTextField)

Class

JavaSwtRichTextField.

Action

Returns the character color in the specified position, or, if the position isn’t specified, returns the color at the insertion point. The color is described in terms of RGB values.

Syntax

textfield.GetCharForeground([iLine, iCol])
Variable Description
textfield A record with fields for RGB values. COLOR.
iLine Optional: The line number of the character whose color is being retrieved. INTEGER.
iCol Optional: The column number of the character whose color is being retrieved. INTEGER.

Notes

This functionality is supported only if you are using the Classic Agent.