Class RadSheetEditorDelegateCommand<T>
Represents the RadSheetEditorBase delegate command.
Inherited Members
Namespace: Telerik.WinForms.Controls.Spreadsheet.Commands
Assembly: Telerik.WinControls.RadSpreadsheet.dll
Syntax
public class RadSheetEditorDelegateCommand<T> : RadSheetEditorCommandBase<T>, ICommand where T : RadSheetEditorBase
Type Parameters
T
The RadSheetEditorBase. |
Constructors
RadSheetEditorDelegateCommand(T, Action<T, Object>, Func<T, Object, Boolean>)
Initializes a new instance of the RadSheetEditorDelegateCommand<T> class.
Declaration
public RadSheetEditorDelegateCommand(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. |