Returns or sets the color used to draw text on each part of the Grid control.
object.ForeColor [= color ]
object.ForeColorSel [= color ]
The ForeColor and ForeColorSel properties syntax have these parts:
Part | Description |
---|---|
object | An object expression that evaluates to an object. |
color | A value or constant that determines the color used to paint text in the scrollable or fixed areas of Grid. |
The picture below shows what part of Grid the properties refer to:
Use the ForeColor property to set the text color of all nonfixed cells. To set the text color of individual cells, use the CellForeColor property.