BCGControlBar Library for .NET
AddCommandToCategory Method




A name of the category to add a button.
A button to add.
The identifier of the command which the button should be added after.
Adds a command associated with the specified button to the specified category to display it at the command list in the customize dialog box.
Syntax
'Declaration
 
Public Sub AddCommandToCategory( _
   ByVal categoryName As String, _
   ByVal button As ToolbarButton, _
   ByVal insertAfterCommandID As Integer _
) 
'Usage
 
Dim instance As CustomizeDialog
Dim categoryName As String
Dim button As ToolbarButton
Dim insertAfterCommandID As Integer
 
instance.AddCommandToCategory(categoryName, button, insertAfterCommandID)
public void AddCommandToCategory( 
   string categoryName,
   ToolbarButton button,
   int insertAfterCommandID
)
public: void AddCommandToCategory( 
   string* categoryName,
   ToolbarButton* button,
   int insertAfterCommandID
) 
public:
void AddCommandToCategory( 
   String^ categoryName,
   ToolbarButton^ button,
   int insertAfterCommandID
) 

Parameters

categoryName
A name of the category to add a button.
button
A button to add.
insertAfterCommandID
The identifier of the command which the button should be added after.
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

CustomizeDialog Class
CustomizeDialog Members

Send Feedback