Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

BackColor Property, SftTree Class

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

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

Syntax

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

Value

The default value is Color.Empty.

Comments

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

Columns, items and cells can override the background color using the ColumnClass.BackColor, ItemClass.BackColor and CellBaseClass.BackColor properties.

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

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

Depending on a cell's background (CellBaseClass.Appearance), the defined color may have no effect.

See Also SftTree Class | Classes | SftTree/NET 2.0