Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

BackColor Property, CellBaseClass Class

Defines the background color of the cell.

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

Syntax

public Color BackColor { get; set; }
Public Property BackColor 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 background color is set to Color.Empty, the containing item determines the background color instead.

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

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

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

If the CellBaseClass.BackColorEnd property is defined, the cell's background uses a gradient fill consisting of the colors defined using BackColor and BackColorEnd.

SftTree.LinearGradientMode for items, RowHeadersClass.LinearGradientMode for row headers, HeadersClass.LinearGradientMode for column headers and FootersClass.LinearGradientMode for column footers.

See Also CellBaseClass Class | Classes | SftTree/NET 2.0