Searches by CommandID for the Command and its sub-commands.
Visual Basic (Declaration) | |
---|---|
Public Overloads Function FindCommand( _ ByVal id As Integer _ ) As Command |
Visual Basic (Usage) | Copy Code |
---|---|
|
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
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)) |
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.
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