Class CellEditorCommandBase<T>
Represents class that describes ICellEditor Command.
Inheritance
Namespace: Telerik.Windows.Controls.Spreadsheet.Commands
Assembly: Telerik.Windows.Controls.Spreadsheet.dll
Syntax
public abstract class CellEditorCommandBase<T> : Object, ICommand where T : ICellEditor
Type Parameters
T
The type of the T. |
Constructors
CellEditorCommandBase(T)
Initializes a new instance of the CellEditorCommandBase<T> class.
Declaration
protected CellEditorCommandBase(T associatedCellEditor)
Parameters
T
associatedCellEditor
The associated cell editor. |
Properties
AssociatedCellEditor
Gets the associated cell editor.
Declaration
public T AssociatedCellEditor { get; }
Property Value
T
The associated cell editor. |
Methods
CanExecute(Object)
Defines the method that determines whether the command can execute in its current state.
Declaration
public bool CanExecute(object parameter)
Parameters
System.Object
parameter
Data used by the command. If the command does not require data to be passed, this object can be set to null. |
Returns
System.Boolean
true if this command can be executed; otherwise, false. |
CanExecuteOverride(Object)
Defines the method that determines whether the command can execute in its current state.
Declaration
protected abstract bool CanExecuteOverride(object parameter)
Parameters
System.Object
parameter
Data used by the command. If the command does not require data to be passed, this object can be set to null. |
Returns
System.Boolean
true if this command can be executed; otherwise, false. |
Execute(Object)
Defines the method to be called when the command is invoked.
Declaration
public void Execute(object parameter)
Parameters
System.Object
parameter
Data used by the command. If the command does not require data to be passed, this object can be set to null. |
ExecuteOverride(Object)
Defines the method to be called when the command is invoked.
Declaration
protected abstract void ExecuteOverride(object parameter)
Parameters
System.Object
parameter
Data used by the command. If the command does not require data to be passed, this object can be set to null. |
OnCanExecuteChanged()
Called when [can execute changed].
Declaration
protected virtual void OnCanExecuteChanged()
Events
CanExecuteChanged
Occurs when changes occur that affect whether or not the command should execute.
Declaration
public event EventHandler CanExecuteChanged
Event Type
System.EventHandler
|