A cell's color scheme.

Usage

Set_Property(OLECtrlEntID, "OLE.CellColors[field; record]", Array)

Values

Array has the following structure:

PosNameTypeDescriptionDefault
<1>Foreground ColorColorColor of the cell's textNone
<2>Background ColorColor FillColor of the cell's backgroundNone
<3>Edit Foreground ColorColorColor of the cell's text while in edit modeNone
<4>Edit Background ColorColorColor of the cell's background while in edit modeNone
<5>Edit Border ColorColorColor of the cell's border while in edit modeNone

Indices

IndexDescription
fieldIndex to an existing field
recordIndex to an existing record

Remarks

The CellColors property allows you to customize the color of individual cells.

The first two fields set the cell's text and background colors. By default, these fields are set to "None", which indicates that the cell's colors should default to those specified by the AutoColors property. Set either of these to "Auto" to use the Windows system color scheme, or set them to any other color value of your choosing.

The other three fields set the cell's colors while it is in edit mode. By default, these fields are set to "None", which indicates that the cell's edit-mode colors should default to those specified by the SelectionStyle property. Set any of these values to "Auto" to use the Windows system color scheme, or set them to any other color value of your choosing.

See Also

AutoColorsSelectionStyleHeaderColorsCellSelColors

  • No labels