ClassCellEditorDelegateCommand<T>
Represents class that describes ICellEditor DelegateCommand.
Definition
Namespace:Telerik.Windows.Controls.Spreadsheet.Commands
Assembly:Telerik.Windows.Controls.Spreadsheet.dll
Type Parameters:
T
The type of the T.
Syntax:
public class CellEditorDelegateCommand<T> : CellEditorCommandBase<T>, ICommand where T : ICellEditor
Inheritance: objectCellEditorCommandBase<T>CellEditorDelegateCommand<T>
Implements:
Inherited Members
Constructors
CellEditorDelegateCommand(T, Action<T, object>, Func<T, object, bool>)
Initializes a new instance of the CellEditorDelegateCommand<T> class.
Declaration
public CellEditorDelegateCommand(T editor, Action<T, object> commandAction, Func<T, object, bool> canExecuteFunction = null)
Parameters
editor
T
The editor.
commandAction
The command action.
canExecuteFunction
The can execute function.
Methods
CanExecuteOverride(object)
Defines the method that determines whether the command can execute in its current state.
Declaration
protected override bool CanExecuteOverride(object parameter)
Parameters
parameter
Data used by the command. If the command does not require data to be passed, this object can be set to null.
Returns
true if this command can be executed; otherwise, false.
Overrides
ExecuteOverride(object)
Defines the method to be called when the command is invoked.
Declaration
protected override void ExecuteOverride(object parameter)
Parameters
parameter
Data used by the command. If the command does not require data to be passed, this object can be set to null.
Overrides