Adds a CommandUIItem instance initialized with a specified command to the CommandUIItemCollection.
Visual Basic (Usage) | Copy Code |
---|---|
|
Parameters
- value
- The Command to generate a new CommandUIItem instance for.
The Command to generate a new CommandUIItem instance.
Return Value
Index position of the new CommandUIItem object in the collection.Index position of the new CommandUIItem in the CommandUIItemCollection
We will add a new CommandUIItem to the collection by specifying a Command for which a UI item is required.
C# | Copy Code |
---|---|
Command cmd = new Command(); |
C# | Copy Code |
---|---|
Command cmd = new Command(); |
The method will add a new CommandUIItem object to the collection with empty parameters.
The method will add new CommandUIItem to collection with empty parameters. This is shortcut of as example below:
The method will add new CommandUIItem to collection with empty parameters. This is shortcut of as example below:
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family