Color Property
Description
Gets/sets the color of the tab and the color of the contextual tab caption when displayed.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property Color() As [XTPRibbonTabContextColor](XtremeCommandBars~Enumerations~XTPRibbonTabContextColor_EN.md)
Remarks
The Color property indicates the color of the tab when active and the color of its ContextCaption when displayed. The picture below illustrates this:

Changing the color of a tab is usually done only if the tab is a contextual tab, meaning the tab is only displayed if a certain condition is met. For example, when you open a JPG file, you can then display some tabs specific to working with JPG files and also add a context tab caption for those tabs.
These colors can also be used just to specify the color of a tab on mouse over if no ContextCaption is added.
Note: To join the ContextCaption of two or more tabs as seen in the picture, the tabs must all be adjacent, have the same ContextCaption, and have the same Ribbon Tab Color.
See Also
- RibbonTab Object
- XTPRibbonTabContextColor Enumeration
- ContextCaption Property
- XTPCommandBarsSpecialCommands Enumeration
- Visible Property
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.