Class CellEditorDelegateCommand<T>
Represents class that describes ICellEditor DelegateCommand.
Inherited Members
Namespace: Telerik.WinForms.Controls.Spreadsheet.Commands
Assembly: Telerik.WinControls.RadSpreadsheet.dll
Syntax
public class CellEditorDelegateCommand<T> : CellEditorCommandBase<T>, ICommand where T : ICellEditor
Type Parameters
|
T
The type of the T. |
Constructors
CellEditorDelegateCommand(T, Action<T, Object>, Func<T, Object, Boolean>)
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
|
T
editor
The editor. |
|
System.Action<T, System.Object>
commandAction
The command action. |
|
System.Func<T, System.Object, System.Boolean>
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
|
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. |
Overrides
ExecuteOverride(Object)
Defines the method to be called when the command is invoked.
Declaration
protected override 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. |