Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

ForeColorSelected Property, CellBaseClass Class

Defines the foreground color of the cell, if the cell is selected.

Class: CellBaseClass
Namespace: Softelvdm.Controls
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 cell, if the cell is selected.

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 ForeColorSelected property is set to Color.Empty: RowHeadersClass.ForeColorSelected for row headers, ItemClass.ForeColorSelected, ColumnClass.ForeColorSelected or SftTree.ForeColorSelected for items, HeadersClass.ForeColorSelected for column headers, FootersClass.ForeColorSelected for column footers.

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

See Also CellBaseClass Class | Classes | SftTree/NET 2.0