New to Telerik UI for WinFormsStart a free 30-day trial

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

Definition

Namespace:Telerik.WinForms.Controls.Spreadsheet.Commands

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Type Parameters:

T

The type of the T.

Syntax:

C#
public abstract class RadSheetEditorCommandBase<T> : ICommand where T : RadSheetEditorBase

Inheritance: objectRadSheetEditorCommandBase<T>

Derived Classes: RadSheetEditorDelegateCommand<T>UpdateActiveSelectionRangeActiveCellCommandUpdateActiveSelectionRangeCommand

Implements: ICommand

Constructors

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

C#
protected RadSheetEditorCommandBase(T associatedSheetEditor)
Parameters:associatedSheetEditorT

The associated sheet editor.

Properties

Gets the associated sheet editor.

C#
public T AssociatedSheetEditor { get; }
Property Value:

The associated sheet editor.

Methods

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

C#
public bool CanExecute(object parameter)
Parameters:parameterobject

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)

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

C#
protected abstract bool CanExecuteOverride(object parameter)
Parameters:parameterobject

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.

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

C#
public void Execute(object parameter)
Parameters:parameterobject

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)

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

C#
protected abstract void ExecuteOverride(object parameter)
Parameters:parameterobject

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

Called when [can execute changed].

C#
protected virtual void OnCanExecuteChanged()

Events

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

C#
public event EventHandler CanExecuteChanged

Implements: ICommand.CanExecuteChanged