SftTree/NET 2.0

BackColor Property, SftTree Class

Softel vdm, Inc.

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

Syntax      SftTree Class (Softelvdm.SftTreeNET)

VB   

Public Overridable Property BackColor As Color

C#   

public virtual Color BackColor { get; set; }

C++   

public: property virtual Color BackColor {
        Color get();
        void set(Color value);
}

Property Value

The default value is Color.Empty.

Comments

The BackColor property 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 BackColorOdd property also defines the default background color for items in the item area. BackColor and BackColorOdd are used alternating between items, so every even numbered item in the display area uses BackColor, every odd numbered item uses BackColorOdd. The first displayed item is considered item 0.

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

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


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com