Class
SyntaxEditorCommandBase

Class SyntaxEditorCommandBase. Implements the ICommand

Definition

Namespace:Telerik.Windows.Controls.SyntaxEditor.Commands

Assembly:Telerik.Windows.Controls.SyntaxEditor.dll

Syntax:

cs-api-definition
public abstract class SyntaxEditorCommandBase : ICommand

Inheritance: objectSyntaxEditorCommandBase

Derived Classes: MoveCaretCommandSyntaxEditorDelegateCommand

Implements: ICommand

Constructors

SyntaxEditorCommandBase(RadSyntaxEditor)

Initializes a new instance of the SyntaxEditorCommandBase class.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
protected SyntaxEditorCommandBase(RadSyntaxEditor editor)

Parameters

editor

RadSyntaxEditor

The editor.

Properties

AssociatedSyntaxEditor

Gets the associated code editor.

Declaration

cs-api-definition
public RadSyntaxEditor AssociatedSyntaxEditor { get; }

Property Value

RadSyntaxEditor

The associated code 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)

Determines whether this instance [can execute override] the specified parameter.

Declaration

cs-api-definition
protected abstract bool CanExecuteOverride(object parameter)

Parameters

parameter

object

The parameter.

Returns

bool

true if this instance [can execute override] the specified parameter; otherwise, false.

Execute(object)

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

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")]
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)

Executes the override.

Declaration

cs-api-definition
protected abstract void ExecuteOverride(object parameter)

Parameters

parameter

object

The parameter.

OnCanExecuteChanged()

Called when [can execute changed].

Declaration

cs-api-definition
protected virtual void OnCanExecuteChanged()

Events

CanExecuteChanged

CanExecuteChanged event.

Declaration

cs-api-definition
public event EventHandler CanExecuteChanged

Event Value

EventHandler

Implements ICommand.CanExecuteChanged