Class
RadSheetEditorCommandBase<T>

Provides the base class from which the classes that represent RadSheetEditor commands are delivered.

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 RadSheetEditorCommandBase<T> : ICommand where T : RadSheetEditorBase

Inheritance: objectRadSheetEditorCommandBase<T>

Derived Classes: RadSheetEditorDelegateCommand<T>UpdateActiveSelectionRangeActiveCellCommandUpdateActiveSelectionRangeCommand

Implements: ICommand

Constructors

RadSheetEditorCommandBase(T)

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

Declaration

cs-api-definition
protected RadSheetEditorCommandBase(T associatedSheetEditor)

Parameters

associatedSheetEditor

T

The associated sheet editor.

Properties

AssociatedSheetEditor

Gets the associated sheet editor.

Declaration

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

Property Value

T

The associated sheet 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