Softelvdm.Controls Class Library for Windows Controls 1.0

BackColor Property, CellBaseClass Class

Softel vdm, Inc.

Defines the background color of the cell.

Syntax      CellBaseClass Class (Softelvdm.Controls)

VB   

Public Property BackColor As Color

C#   

public Color BackColor { get; set; }

C++   

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

Property Value

The background color or Color.Empty.

The default value is Color.Empty.

Comments

The BackColor property 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 Appearance property, the BackColor property settings may have no effect.

SftTree/NET 2.0: Depending on the containing item, the following properties are used instead, if the BackColor property is set to Color.Empty: RowHeaders.BackColor for row headers, ItemClass.BackColor, ColumnClass.BackColor, BackColorOdd or BackColor for items, Headers.BackColor for column headers, Footers.BackColor for column footers.

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

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

SftTree/NET 2.0: The orientation of the gradient fill can be defined using these properties: LinearGradientMode for items, RowHeaders.LinearGradientMode for row headers, Headers.LinearGradientMode for column headers and Footers.LinearGradientMode for column footers.

SftTabs/NET 6.0: If a gradient fill is used, horizontal tabs use a vertical fill (outside to inside), vertical tabs use a horizontal fill.

Version Information

Supported in version 1.0.
Products Table


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