Class CommandBase
Base Command used for defining commands
Inheritance
System.Object
CommandBase
Implements
System.Windows.Input.ICommand
Namespace: Syncfusion.UI.Xaml.Spreadsheet.Commands
Assembly: Syncfusion.SfSpreadsheet.UWP.dll
Syntax
public class CommandBase : Object, ICommand
Properties
CommandName
Declaration
protected string CommandName { get; }
Property Value
Type |
---|
System.String |
SfSpreadsheet
The SfSpreadsheet Control
Declaration
public SfSpreadsheet SfSpreadsheet { get; }
Property Value
Type |
---|
SfSpreadsheet |
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 |
RaiseCanExecuteChanged()
Declaration
public void RaiseCanExecuteChanged()
Events
CanExecuteChanged
Event is used to handle when OnCanExecute is changed
Declaration
public event EventHandler CanExecuteChanged
Event Type
Type |
---|
System.EventHandler |
Implements
System.Windows.Input.ICommand