Help Center

ForeColorFixedproperty

Returns or sets the foreground color of the fixed rows and columns.

Windowspropertydoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

PROPERTY ForeColorFixed () AS OLE_COLOR
PROPERTY ForeColorFixed (BYVAL clr AS OLE_COLOR)

Parameters

NameDescription
clrAn OLE_COLOR value, such as a Visual Basic constant (e.g. vbBlue), a system constant (e.g. vbHighlight), a hex code, or an RGB value.

Description

Returns or sets the text color for all fixed cells in the control. Fixed cells are non-scrolling areas typically used for data labels or column headers.

Remarks

It is important to distinguish ForeColorFixed from band-specific properties in the MSHFlexGrid:

ForeColorFixed: A global property that sets the text color for the entire fixed area (defined by FixedRows and FixedCols).

ForeColorHeader(BandNumber): A targeted property that sets the text color specifically for the headers of a nested hierarchical level (band).

Example

' Sets the text color for all fixed headers to white grid.ForeColorFixed = vbWhite

' Alternatively, setting it to a custom theme blue grid.ForeColorFixed = BGR(0, 51, 153)

Reference