ForeColor, ForeColorBand, ForeColorFixed, ForeColorHeader, ForeColorSel Properties (ModHFGrid)

Example    Applies To

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

Syntax

object.ForeColor [= color]
object.ForeColorBand(BandNumber) [= color]
object.ForeColorFixed [= color]
object.ForeColorHeader(BandNumber) [= 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.
BandNumber Required. A Long value that specifies the band being affected.
color A value or constant that determines the color used to paint text in the scrollable, fixed, band, or header areas of the ModHFGrid.

Remarks

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.