HeaderPane
Main
Hide
Share Link
Print

Colors

The colors of the tabs and tab pages are defined by the control's look (see Tab Looks). An application can replace these colors for all tabs of the control and for individual tabs.

Colors

Colors for All Tabs

These properties of the control define the colors of all tabs. A property set to Color.Empty uses the color of the control's look.

PropertyDescription
SftTabs.TabBackColor, SftTabs.TabBackColorEndThe background color of the tabs. If the ending color is defined, the background is a gradient fill of the two colors.
SftTabs.TabForeColorThe text color of the tabs.
SftTabs.TabBackColorSelected, SftTabs.TabBackColorSelectedEndThe background color of the selected tab, with an optional gradient fill.
SftTabs.TabForeColorSelectedThe text color of the selected tab.
SftTabs.TabBackColorHotThe background color of the tab under the mouse cursor (see Flyby Highlighting).
SftTabs.TabForeColorHotThe text color of the tab under the mouse cursor.
SftTabs.PageBackColorThe background color of the tab pages.
SftTabs.BorderColorThe color of the tab and page borders of the looks that draw their own borders.
SftTabs.AccentColorThe color that marks the selected tab in the Underline, Document and Pills looks.

A gradient fill runs from the outer edge of a tab toward the tab pages.

Colors for Individual Tabs

Each tab can define its own colors, which are used instead of the colors defined for all tabs: CellBaseClass.BackColor and CellBaseClass.BackColorEnd, CellBaseClass.ForeColor, CellBaseClass.BackColorSelected and CellBaseClass.BackColorSelectedEnd, CellBaseClass.ForeColorSelected, TabClass.BackColorHot, TabClass.ForeColorHot and TabClass.PageBackColor. A property set to Color.Empty uses the control's setting.

The text parts and other parts of a tab can define their own colors, for example TextPartClass.ForeColor.

Dark Mode and High Contrast

In dark mode, colors left at their defaults are replaced by dark counterparts; colors set by the application are used as defined (see Dark Mode). In high contrast mode, colors set by the application are ignored (see High Contrast).

See Also Tab Control Components