Retrieves or sets the foreground color for objects that match the condition.
A color expression that indicates the foreground color for the object that match
Use the ForeColor property to specify the foreground color
for objects that match the criteria. Use the BackColor
property to change the background color for items or cells in the column when
a certain condition is met. Use the ClearForeColor
method to remove the foreground color being set using previously the ForeColor
property. If the ForeColor property is not set, it retrieves 0. The ApplyTo
property specifies whether the ConditionalFormat object is applied to items or
to cells in the column.
The following screen shot shows the control when the ForeColor property is