Gets or sets the unique identifier of the command.
Visual Basic (Declaration) | |
---|---|
Public Property CommandID As Integer |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public int CommandID {get; set;} |
Return Value
Unique identifier of the command.Unique identifier of the command.
A new command with an ID of 100 is added to the commands collection, and we then search for this Command in the collection.
C# | Copy Code |
---|---|
Command cmd = new Command();<CRLF>cmd.CommandID = 100;<CRLF>chart1.UI.Commands.Add( cmd );<CRLF>...<CRLF><CRLF>chart1.UI.Commands.FindCommand(100).Execute(); |
C# | Copy Code |
---|---|
|
A user-defined command must have a unique, non-zero identifier.
For standard (i.e. pre-defined) commands the identifier is always zero.
The identifier can be used in event handling or as a parameter of the CommandCollection.FindCommand method, used to to locate a Command object in the command collection.
The user defined command have to have unique non zero identifier while predefined commands the identifier is allways zero.
This indentifier can be used in event handling or as parameter of CommandCollection.FindCommand(ChartCommandType) method to locate a Command object in CommandCollection
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