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

Class SyntaxEditorCommandBase. Implements the ICommand

Definition

Namespace:Telerik.WinForms.SyntaxEditor.Commands

Assembly:Telerik.WinControls.SyntaxEditor.dll

Syntax:

C#
public abstract class SyntaxEditorCommandBase : ICommand

Inheritance: objectSyntaxEditorCommandBase

Derived Classes: MoveCaretCommandSyntaxEditorDelegateCommand

Implements: ICommand

Constructors

Initializes a new instance of the SyntaxEditorCommandBase class.

C#
protected SyntaxEditorCommandBase(RadSyntaxEditorElement editor)
Parameters:editorRadSyntaxEditorElement

The editor.

Properties

Gets the associated code editor.

C#
public RadSyntaxEditorElement AssociatedSyntaxEditor { get; }
Property Value:

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

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

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

The parameter.

Returns:

bool

true if this instance [can execute override] the specified parameter; 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)

Executes the override.

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

The parameter.

Called when [can execute changed].

C#
protected virtual void OnCanExecuteChanged()

Events

CanExecuteChanged event.

C#
public event EventHandler CanExecuteChanged

Implements: ICommand.CanExecuteChanged