BCGControlBar Library for .NET
AddCategory(String,CategoryPanel) Method




The name of the category to add.
The CategoryPanel to add.
Adds the specified CategoryPanel with specified CategoryName to the RibbonControl.
Syntax
'Declaration
 
Public Overloads Sub AddCategory( _
   ByVal categoryName As String, _
   ByVal panel As CategoryPanel _
) 
'Usage
 
Dim instance As RibbonControl
Dim categoryName As String
Dim panel As CategoryPanel
 
instance.AddCategory(categoryName, panel)
public void AddCategory( 
   string categoryName,
   CategoryPanel panel
)
public: void AddCategory( 
   string* categoryName,
   CategoryPanel* panel
) 
public:
void AddCategory( 
   String^ categoryName,
   CategoryPanel^ panel
) 

Parameters

categoryName
The name of the category to add.
panel
The CategoryPanel to add.
Remarks
This function creates a new TabCommandObject, relates it with the specified  CategoryPanel, sets this RibbonControl as a parent for this CategoryPanel and the parent CommandBarManager for the RibbonControl as parent CommandBarManager for the CategoryPanel.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RibbonControl Class
RibbonControl Members
Overload List

Send Feedback