Dundas Chart for ASP.NET
CommandID Property
See Also  Example Send comments on this topic.
Dundas.Charting.WebControl Namespace > Command Class : CommandID Property


Enterprise Only Feature. Gets or sets the unique identifier of the command.
Gets or sets the unique identifier of the command.

Syntax

Visual Basic (Declaration)  
Public Property CommandID As Integer
Visual Basic (Usage) Copy Code
Dim instance As Command
Dim value As Integer
 
instance.CommandID = value
 
value = instance.CommandID
C#  
public int CommandID {get; set;}

Return Value

Unique identifier of the command.
Unique identifier of the command.

Example

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

Command cmd = new Command();
cmd.CommandID = 100;
chart1.UI.Commands.Add( cmd );
.....
chart1.UI.Commands.FindCommand( 100).Execute();

Remarks

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

Requirements

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

See Also

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.