Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

BackColorSelected Property, CellBaseClass Class

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

Class: CellBaseClass
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET

Syntax

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

Value

The background color or Color.Empty.

The default value is Color.Empty.

Comments

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

If the background color is set to Color.Empty, the containing item determines the background color instead.

Depending on the cell's CellBaseClass.Appearance property, the BackColorSelected property settings may have no effect.

Depending on the containing item, the following properties are used instead, if the CellBaseClass.BackColorSelected property is set to Color.Empty: RowHeadersClass.BackColorSelected for row headers, ItemClass.BackColorSelected, ColumnClass.BackColorSelected, SFtTree.BackColorSelected for items, HeadersClass.BackColorSelected for column headers, FootersClass.BackColorSelected for column footers.

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

See Also CellBaseClass Class | Classes | SftTree/NET 2.0