Class CommandBase
Base Command used for defining commands
Inheritance
System.Object
CommandBase
Implements
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.Spreadsheet.Commands
Assembly: Syncfusion.Spreadsheet.Windows.dll
Syntax
public class CommandBase : ICommand
Properties
CommandName
Declaration
protected string CommandName { get; }
Property Value
Type |
---|
System.String |
SfSpreadsheet
The SfSpreadsheet Control
Declaration
public Spreadsheet SfSpreadsheet { get; }
Property Value
Type |
---|
Spreadsheet |
Methods
CanExecute(Object)
Declaration
public bool CanExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter |
Returns
Type |
---|
System.Boolean |
Execute(Object)
used to Execute the CommandBase
Declaration
public virtual void Execute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | true or false |
OnCanExecute(Object)
returns
Declaration
public virtual bool OnCanExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | true or false |
Returns
Type | Description |
---|---|
System.Boolean | returns true or false |
OnExecute(Object)
Used to Execute the Specified Command
Declaration
protected virtual void OnExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | returns true or false |