Dundas Chart for Windows Forms
Execute(Object,String) Method
See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > Command Class > Execute Method : Execute(Object,String) Method


selectedObject
The object context by which the command will be executed.
The object context over which command to be executed
parameters
String representation of the object context and additional parameters, used to override default behavior of the command.
String representation of object context and additional parameters to override default behavior of the command
Enterprise Only Feature. Executes the command with the given context and parameters.
Executes the command with defined context and parameters.

Syntax

Visual Basic (Declaration)  
Public Overloads Overridable Function Execute( _
   ByVal selectedObject As Object, _
   ByVal parameters As String _
) As Boolean
Visual Basic (Usage) Copy Code
Dim instance As Command
Dim selectedObject As Object
Dim parameters As String
Dim value As Boolean
 
value = instance.Execute(selectedObject, parameters)
C#  
public virtual bool Execute( 
   object selectedObject,
   string parameters
)

Parameters

selectedObject
The object context by which the command will be executed.
The object context over which command to be executed
parameters
String representation of the object context and additional parameters, used to override default behavior of the command.
String representation of object context and additional parameters to override default behavior of the command

Return Value

True if the command is executed successfully, otherwise false.
True if the command is executed succesfuly, otherwize - false

Remarks

The selectedObject can be null, a chart element or any IEnumerable object of chart elements.

Supported chart elements are as follows:

  • ChartArea.
  • Series.
  • Axis.
  • Annotation.
  • Legend.
  • LegendItem.
  • Title.
  • DataPoint.

The parameters can be used to add to an object context elements by name, or add additional parameters to change its default behavior.

Each Command can handle a limited set of object types, determined by its SupportedElements property.


The selectedObject can be null, a chart element or IEnumerable object of chart elements. The possible supported chart elements are: ChartArea, Series, Axis, Annotation, Legend, LegendItem, Title or DataPoint. The parameters parameter can adds to object context elements by name or additinal parameters to change default behavior of the Command. Each Command can handle with limited set of object types determined by Command.SupportedElements property.

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

© 2009 All Rights Reserved.