Foreground Property

Class

AnyWin.

Description

Reads the foreground color of a control.

Notes

This property is supported only in scripts that use the Open Agent.

Data Type

COLOR.

Access

Read only.

Example

This example uses the GetProperty function to get the value of the foreground color.
Desktop.Find("//BrowserWindow//DIV[@textContents='Example Text']").GetProperty("currentStyle:color")