Dundas.SharePoint.Charting.WebParts Send comments on this topic.
CommandID Property
See Also  Example
Dundas.Charting.WebControl Namespace > Command Class : CommandID Property


Gets or sets the unique identifier of the command.

Syntax

Visual Basic (Declaration)  
<DefaultValueAttribute()>
<CategoryAttribute("Command")>
<DescriptionAttribute("Gets or sets a unique identifier of the command")>
<BrowsableAttribute(True)>
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#  
[DefaultValueAttribute()]
[CategoryAttribute("Command")]
[DescriptionAttribute("Gets or sets a unique identifier of the command")]
[BrowsableAttribute(true)]
public int CommandID {get; set;}

Return Value

Unique identifier of the command.

Example

C# Copy Code

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

Remarks

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