Class RadSheetEditorCommandBase<T>
Provides the base class from which the classes that represent RadSheetEditor commands are delivered.
Inheritance
Inherited Members
Namespace: Telerik.WinForms.Controls.Spreadsheet.Commands
Assembly: Telerik.WinControls.RadSpreadsheet.dll
Syntax
public abstract class RadSheetEditorCommandBase<T> : ICommand where T : RadSheetEditorBase
Type Parameters
|
T
The type of the T. |
Constructors
RadSheetEditorCommandBase(T)
Initializes a new instance of the RadSheetEditorCommandBase<T> class.
Declaration
protected RadSheetEditorCommandBase(T associatedSheetEditor)
Parameters
|
T
associatedSheetEditor
The associated sheet editor. |
Properties
AssociatedSheetEditor
Gets the associated sheet editor.
Declaration
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
public bool CanExecute(object parameter)
Parameters
|
System.Object
parameter
Data used by the command. If the command does not require data to be passed, this object can be set to null. |
Returns
|
System.Boolean
true if this command can be executed; otherwise, false. |
Implements
CanExecuteOverride(Object)
Defines the method that determines whether the command can execute in its current state.
Declaration
protected abstract bool CanExecuteOverride(object parameter)
Parameters
|
System.Object
parameter
Data used by the command. If the command does not require data to be passed, this object can be set to null. |
Returns
|
System.Boolean
true if this command can be executed; otherwise, false. |
Execute(Object)
Defines the method to be called when the command is invoked.
Declaration
public void Execute(object parameter)
Parameters
|
System.Object
parameter
Data used by the command. If the command does not require data to be passed, this object can be set to null. |
Implements
ExecuteOverride(Object)
Defines the method to be called when the command is invoked.
Declaration
protected abstract void ExecuteOverride(object parameter)
Parameters
|
System.Object
parameter
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
protected virtual void OnCanExecuteChanged()
Events
CanExecuteChanged
Occurs when changes occur that affect whether or not the command should execute.
Declaration
public event EventHandler CanExecuteChanged
Event Type
|
System.EventHandler
|