How do I hide the ribbon tab caption area but not the ribbon tab itself? I only have one tab on the ribbon, and the caption is unnecessary and is taking up space.
Actually, while I'm working on it...how do I hide the group caption area too? (the area that says 'New Packets' in the images I provided)
Hello,
I will be happy to assist you with your questions. To prevent the caption from being displayed for the scenarios you mentioned, please use the following code:this.ultraToolbarsManager1.Ribbon.Tabs[0].Caption = "";this.ultraToolbarsManager1.Ribbon.Tabs[0].Groups[0].Caption = "";
To learn more about the ultraToolbarsManager, please visit our help documentation found here.
Please let me know if you have any questions regarding this matter.
Jose,
Doing what you suggested just removes the text but keeps the tab.
How can I remove the tab entirely (see my screen shot from my first post).
The only way you can accomplish the behavior you've requested is by using a creation filter to prevent the Ribbon tab from being displayed. I have attached a sample that demonstrates how to achieve the desired behavior. Please run the sample and let me know if you have any questions.
Also, please note that removing the tab as displayed in my sample goes against the Microsoft Office 2007 UI guidelines. To learn more about the office UI guidelines, please visit our help documentation found here.