ClassRadSheetEditorDelegateCommand<T>
Represents the RadSheetEditorBase delegate command.
Definition
Namespace:Telerik.Windows.Controls.Spreadsheet.Commands
Assembly:Telerik.Windows.Controls.Spreadsheet.dll
Type Parameters:
T
The RadSheetEditorBase.
Syntax:
public class RadSheetEditorDelegateCommand<T> : RadSheetEditorCommandBase<T>, ICommand where T : RadSheetEditorBase
Inheritance: objectRadSheetEditorCommandBase<T>RadSheetEditorDelegateCommand<T>
Implements:
Inherited Members
Constructors
RadSheetEditorDelegateCommand(T, Action<T, object>, Func<T, object, bool>)
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
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