Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

ForeColorSelected Property, ItemClass Class

Defines the foreground color of the item's cells, if the item is selected.

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

Syntax

public Color ForeColorSelected { get; set; }
Public Property ForeColorSelected 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 item is selected.

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

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

See Also ItemClass Class | Classes | SftTree/NET 2.0