A cell's color scheme.
Usage
Set_Property(OLECtrlEntID, "OLE.CellColors[field; record]", Array)
Values
Array has the following structure:
Pos | Name | Type | Description | Default |
---|---|---|---|---|
<1> | Foreground Color | Color | Color of the cell's text | None |
<2> | Background Color | Color Fill | Color of the cell's background | None |
<3> | Edit Foreground Color | Color | Color of the cell's text while in edit mode | None |
<4> | Edit Background Color | Color | Color of the cell's background while in edit mode | None |
<5> | Edit Border Color | Color | Color of the cell's border while in edit mode | None |
Indices
Index | Description |
---|---|
field | Index to an existing field |
record | Index 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.