Defines the cell's foreground color.
Get
| C# | uint Clr = object.ForeColor; |
| VB.NET | Clr = object.ForeColor As UInteger![]() |
| C++ | OLE_COLOR Clr = object->ForeColor; OLE_COLOR Clr = object->GetForeColor(); |
| C | HRESULT object->get_ForeColor(OLE_COLOR* Clr); |
Put
| C# | uint object.ForeColor = Clr; |
| VB.NET | object.ForeColor = Clr As UInteger![]() |
| C++ | OLE_COLOR object->ForeColor = Clr; void object->PutForeColor(OLE_COLOR Clr); |
| C | HRESULT object->put_ForeColor(OLE_COLOR Clr); |
object
Clr
Defines the cell's foreground color. Specify -1 to restore the default color. For information about color properties, please visit the applicable section "Using SftBox/OCX with ...".
The ForeColor property defines the cell's foreground color.
This color overrides the default color defined using Items.ForeColor or Column.ForeColor. If a cell is part of a selected item and the Items.SelectionStyle is suitably defined, the foreground color defined using the Cell.SelectForeColor property is used instead.
See Also SftBoxCell Object | Object Hierarchy