SftTree/NET 2.0 - Tree Control for Windows Forms


ForeColor Property, CellBaseClass Class

Defines the foreground color of the cell.

Class: CellBaseClass
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET


public Color ForeColor { get; set; }
Public Property ForeColor As Color


The foreground color or Color.Empty.

The default value is Color.Empty.


Defines the foreground color of the cell.

If the foreground color is set to Color.Empty, the containing item determines the foreground color instead.

Depending on the containing item, the following properties are used instead, if the ForeColor property is set to Color.Empty: RowHeadersClass.ForeColor for row headers, ItemClass.ForeColor, ColumnClass.ForeColor, SftTree.ForeColorOdd or SftTree.ForeColor for items, HeadersClass.ForeColor for column headers, FootersClass.ForeColor for column footers.

If a cell is considered selected, the CellBaseClass.ForeColorSelected property is used to define the foreground color instead.

See Also CellBaseClass Class | Classes | SftTree/NET 2.0