CellFloodColor Property

Returns or sets the color to be used for flooding a cell.

Syntax

[form!]VSFlexGrid.CellFloodColor[ = colorref& ]

Remarks

This property overrides the FloodColor property to determine the color to be used for flooding individual cells. For performance reasons, these colors are always mapped to the nearest solid color.

Setting this property to zero (black) causes the control to paint the cell using the standard colors (set by the FloodColor property). Thus, to set this property to black, use RGB(1,1,1) instead of RGB(0,0,0) or vbBlack.

Changing this property affects the current cell or the current selection depending on the setting of the FillStyle property. To set the flood color of an arbitrary range of cells (not necessarily the current selection), use the Cell property instead.

The Cell Flooding Demo shows how this property is used.

Data Type

Color

See Also

VSFlexGrid Control