This document is archived and information here might be outdated. Recommended version. |
Adds a new command to this commandbar.
[Visual Basic .NET] Public Function Add ( _ ByVal cmdID As UID, _ [ByRef Index As Object] _ ) As ICommandItem
[C#] public ICommandItem Add ( UID cmdID, ref object Index );
cmdID specifies the unique identifier of the command that is to be added to the commandbar.
Index specifies the postion on the commandbar at which this item is to be added. [Optional]
In VBA, you can use the built-in ArcID module to find the unique identifier for a particular command or commandbar.
ICommandBar Interface | ICommandItem Interface | IUID Interface