Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

ForeColor Property, ItemClass Class

Defines the foreground color of the item's cells.

Class: ItemClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

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

Value

The foreground color or Color.Empty.

The default value is Color.Empty.

Comments

Defines the foreground color of the item's cells.

If the foreground color is set to Color.Empty, the following properties are used instead: ColumnClass.ForeColor, ForeColorOdd or ForeColor for items, HeadersClass.ForeColor for column headers, FootersClass.ForeColor for column footers. Individual cells can define their foreground color using the CellBaseClass.ForeColor property.

If an item is considered selected, the ItemClass.ForeColorSelected property is used to define the foreground color instead.

See Also ItemClass Class | Classes | SftTree/NET 2.0