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

cs-api-definition
public class CellEditorDelegateCommand<T> : CellEditorCommandBase<T>, ICommand where T : ICellEditor

Inheritance: objectCellEditorCommandBase<T>CellEditorDelegateCommand<T>

Implements: ICommand

Inherited Members CellEditorCommandBase<T>.CanExecute(object)CellEditorCommandBase<T>.Execute(object)CellEditorCommandBase<T>.OnCanExecuteChanged()CellEditorCommandBase<T>.AssociatedCellEditorCellEditorCommandBase<T>.CanExecuteChanged

Constructors

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

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

Declaration

cs-api-definition
public CellEditorDelegateCommand(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 CellEditorCommandBase<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 CellEditorCommandBase<T>.ExecuteOverride(object)