ForeColorSel

This property returns and sets the color of selected text in a Grid control.

Syntax

object.ForeColorSel [= color]

Parameters

object
Object expression that evaluates to a Grid control.
color
Value or constant that determines the color used to paint text in the scrollable areas of the Grid control.

Remarks

Use the ForeColorSel property to set the highlight text color of all cells that are selected. Use the ForeColor property to set the text color of all cells. To set the text color of individual cells, use the CellForeColor property. To enable a cell with a different CellForeColor to use the ForeColor color, set the cell's CellForeColor property to 1.