HeaderPane
Main
Hide
Share Link
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 override Color ForeColor { get; set; }
Public Overrides Property ForeColor As Color

Value

The default value is SystemColors.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 3.0