Dundas Chart for ASP.NET
FindCommand(Int32) Method
See Also  Example Send comments on this topic.
Dundas.Charting.WebControl Namespace > CommandCollection Class > FindCommand Method : FindCommand(Int32) Method


id
The CommandID of the Command to search for.
The CommandID of the Command to search.
Enterprise Only Feature. Searches for a Command using a command ID.
Searches by CommandID for the Command and its sub-commands.

Syntax

Visual Basic (Declaration)  
Public Overloads Function FindCommand( _
   ByVal id As Integer _
) As Command
Visual Basic (Usage) Copy Code
Dim instance As CommandCollection
Dim id As Integer
Dim value As Command
 
value = instance.FindCommand(id)
C#  
public Command FindCommand( 
   int id
)

Parameters

id
The CommandID of the Command to search for.
The CommandID of the Command to search.

Return Value

Command object reference, or null (Nothing) if not found.
Command reference or null if not found

Example

We find a command by command ID, and cast the chart command type to an integer (ID).
C# Copy Code
chart1.UI.Commands.Find( (int) ChartCommandType.Properties);
Visual Basic Copy Code
chart1.UI.Commands.Find(CType(ChartCommandType.Properties, Integer))
C# Copy Code
chart1.UI.Commands.Find( (int) ChartCommandType.Properties);
VB.Net Copy Code
chart1.UI.Commands.Find(CType(ChartCommandType.Properties, Integer))

Remarks

In order to find a pre-defined command use the definition that takes a ChartCommandType. You can also cast a CommandType to an integer (i.e. CommandID), and then use the FindCommand method.

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.