Class
CellEditorCommandBase<T>

Represents class that describes ICellEditor Command.

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 abstract class CellEditorCommandBase<T> : ICommand where T : ICellEditor

Inheritance: objectCellEditorCommandBase<T>

Derived Classes: CellEditorDelegateCommand<T>

Implements: ICommand

Constructors

CellEditorCommandBase(T)

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

Declaration

cs-api-definition
protected CellEditorCommandBase(T associatedCellEditor)

Parameters

associatedCellEditor

T

The associated cell editor.

Properties

AssociatedCellEditor

Gets the associated cell editor.

Declaration

cs-api-definition
public T AssociatedCellEditor { get; }

Property Value

T

The associated cell editor.

Methods

CanExecute(object)

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

Declaration

cs-api-definition
public bool CanExecute(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.

Implements ICommand.CanExecute(object)

CanExecuteOverride(object)

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

Declaration

cs-api-definition
protected abstract 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.

Execute(object)

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

Declaration

cs-api-definition
public void Execute(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.

Implements ICommand.Execute(object)

ExecuteOverride(object)

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

Declaration

cs-api-definition
protected abstract 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.

OnCanExecuteChanged()

Called when [can execute changed].

Declaration

cs-api-definition
protected virtual void OnCanExecuteChanged()

Events

CanExecuteChanged

Occurs when changes occur that affect whether or not the command should execute.

Declaration

cs-api-definition
public event EventHandler CanExecuteChanged

Event Value

EventHandler

Implements ICommand.CanExecuteChanged