ForeColor, ForeColorBand, ForeColorFixed, ForeColorHeader, ForeColorSel Properties

       

Returns or sets the colors used to draw text on each part of the MSHFlexGrid.

Syntax

object.ForeColor [= color]
object.ForeColorBand [= color]
object.ForeColorFixed [= color]
object.ForeColorHeader [= color]
object.ForeColorSel [= color]

Syntax for the ForeColor, ForeColorBand, ForeColorFixed, ForeColorHeader, and ForeColorSel properties has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
color A value or constant that determines the color used to paint text in the scrollable, fixed, band, or header areas of the MSHFlexGrid.

Remarks

The picture below shows the parts of the MSHFlexGrid to which the properties refer:

Use the ForeColor property to set the text color of all non-fixed cells.

Use the CellForeColor property to set the text color of individual cells.