Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

ForeColor Property, SftTree Class

Defines the default foreground color for items in the item area.

Class: SftTree
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

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

Value

The default value is Color.WindowText.

Comments

Defines the default foreground color for items in the item area.

Columns, items and cells can override the foreground color using the ColumnClass.ForeColor, ItemClass.ForeColor and CellBaseClass.ForeColor properties.

The SftTree.ForeColorOdd property also defines the default foreground color for items in the item area. ForeColor and SftTree.ForeColorOdd are used alternating between items, so every even numbered item in the display area uses ForeColor, every odd numbered item uses SftTree.ForeColorOdd. The first displayed item is considered item 0.

Selected items may use the colors defined using the SftTree.ForeColorSelected property instead.

See Also SftTree Class | Classes | SftTree/NET 2.0