Class ChartCommand
Defines a command.
Inheritance
System.Object
ChartCommand
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.Chart
Assembly: Syncfusion.Chart.Windows.dll
Syntax
public abstract class ChartCommand
Remarks
Commands can be used for determinate the functionality of GUI elements.
Constructors
ChartCommand(String, Image)
Initializes a new instance of the ChartCommand class.
Declaration
public ChartCommand(string name, Image icon)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.Drawing.Image | icon | The icon. |
ChartCommand(String, String, Image)
Initializes a new instance of the ChartCommand class.
Declaration
public ChartCommand(string name, string title, Image icon)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.String | title | The title. |
System.Drawing.Image | icon | The icon. |
Properties
Image
Gets the image of icon.
Declaration
public Image Image { get; }
Property Value
Type | Description |
---|---|
System.Drawing.Image | The image of icon. |
Name
Gets the name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String | The name. |
Text
Gets the command title.
Declaration
public string Text { get; }
Property Value
Type | Description |
---|---|
System.String | The text. |
Methods
Execute(ChartControl, String)
Executes command.
Declaration
public abstract void Execute(ChartControl chart, string parameter)
Parameters
Type | Name | Description |
---|---|---|
ChartControl | chart | The chart. |
System.String | parameter | The parameter. |
IsToggled(ChartControl, String)
Determines whether the command is toggled.
Declaration
public abstract bool IsToggled(ChartControl chart, string parameter)
Parameters
Type | Name | Description |
---|---|---|
ChartControl | chart | The chart. |
System.String | parameter | The parameter. |
Returns
Type | Description |
---|---|
System.Boolean |
|