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.
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.
| Property | Description |
|---|---|
| SftTabs.TabBackColor, SftTabs.TabBackColorEnd | The background color of the tabs. If the ending color is defined, the background is a gradient fill of the two colors. |
| SftTabs.TabForeColor | The text color of the tabs. |
| SftTabs.TabBackColorSelected, SftTabs.TabBackColorSelectedEnd | The background color of the selected tab, with an optional gradient fill. |
| SftTabs.TabForeColorSelected | The text color of the selected tab. |
| SftTabs.TabBackColorHot | The background color of the tab under the mouse cursor (see Flyby Highlighting). |
| SftTabs.TabForeColorHot | The text color of the tab under the mouse cursor. |
| SftTabs.PageBackColor | The background color of the tab pages. |
| SftTabs.BorderColor | The color of the tab and page borders of the looks that draw their own borders. |
| SftTabs.AccentColor | The 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.
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.
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