Class
RadSheetEditorDelegateCommand<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:

cs-api-definition
public class RadSheetEditorDelegateCommand<T> : RadSheetEditorCommandBase<T>, ICommand where T : RadSheetEditorBase

Inheritance: objectRadSheetEditorCommandBase<T>RadSheetEditorDelegateCommand<T>

Implements: ICommand

Inherited Members RadSheetEditorCommandBase<T>.CanExecute(object)RadSheetEditorCommandBase<T>.Execute(object)RadSheetEditorCommandBase<T>.OnCanExecuteChanged()RadSheetEditorCommandBase<T>.AssociatedSheetEditorRadSheetEditorCommandBase<T>.CanExecuteChanged

Constructors

RadSheetEditorDelegateCommand(T, Action<T, object>, Func<T, object, bool>)

Initializes a new instance of the RadSheetEditorDelegateCommand<T> class.

Declaration

cs-api-definition
public RadSheetEditorDelegateCommand(T editor, Action<T, object> commandAction, Func<T, object, bool> canExecuteFunction = null)

Parameters

editor

T

The editor.

commandAction

Action<T, object>

The command action.

canExecuteFunction

Func<T, object, bool>

The can execute function.

Methods

CanExecuteOverride(object)

Defines the method that determines whether the command can execute in its current state.

Declaration

cs-api-definition
protected override bool CanExecuteOverride(object parameter)

Parameters

parameter

object

Data used by the command. If the command does not require data to be passed, this object can be set to null.

Returns

bool

true if this command can be executed; otherwise, false.

Overrides RadSheetEditorCommandBase<T>.CanExecuteOverride(object)

ExecuteOverride(object)

Defines the method to be called when the command is invoked.

Declaration

cs-api-definition
protected override void ExecuteOverride(object parameter)

Parameters

parameter

object

Data used by the command. If the command does not require data to be passed, this object can be set to null.

Overrides RadSheetEditorCommandBase<T>.ExecuteOverride(object)