Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

BackColor Property, ColumnClass Class

Defines the column's default background color for cells in the item area that are not selected.

Class: ColumnClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

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

Value

The default background color for cells in this column or Color.Empty.

The default value is Color.Empty.

Comments

Defines the column's default background color for cells in the item area that are not selected.

Items and cells can override the background color using the ItemClass.BackColor and CellBaseClass.BackColor properties.

If Color.Empty is specified, cells use the default color defined using the control's the SftTree.BackColor property instead, row headers use the RowHeadersClass.BackColor property, column headers use the HeadersClass.BackColor property and column footers use the FootersClass.BackColor property.

Selected cells may use the colors defined using the ColumnClass.BackColorSelected property instead. If a selected cell uses a selection style (SftTree.SelectionHighlightStyle property) that uses the ColumnClass.BackColorSelected property for only portions of the cell, the ColumnClass.BackColor property is used for the remainder of the cell.

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

See Also ColumnClass Class | Classes | SftTree/NET 2.0