Class SyntaxEditorCommandBase
Class SyntaxEditorCommandBase. Implements the ICommand
Inheritance
Inherited Members
Namespace: Telerik.WinForms.SyntaxEditor.Commands
Assembly: Telerik.WinControls.SyntaxEditor.dll
Syntax
public abstract class SyntaxEditorCommandBase : ICommand
Constructors
SyntaxEditorCommandBase(RadSyntaxEditorElement)
Initializes a new instance of the SyntaxEditorCommandBase class.
Declaration
protected SyntaxEditorCommandBase(RadSyntaxEditorElement editor)
Parameters
|
RadSyntaxEditorElement
editor
The editor. |
Properties
AssociatedSyntaxEditor
Gets the associated code editor.
Declaration
public RadSyntaxEditorElement AssociatedSyntaxEditor { get; }
Property Value
|
RadSyntaxEditorElement
The associated code 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)
Determines whether this instance [can execute override] the specified parameter.
Declaration
protected abstract bool CanExecuteOverride(object parameter)
Parameters
|
System.Object
parameter
The parameter. |
Returns
|
System.Boolean
|
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)
Executes the override.
Declaration
protected abstract void ExecuteOverride(object parameter)
Parameters
|
System.Object
parameter
The parameter. |
OnCanExecuteChanged()
Called when [can execute changed].
Declaration
protected virtual void OnCanExecuteChanged()
Events
CanExecuteChanged
CanExecuteChanged event.
Declaration
public event EventHandler CanExecuteChanged
Event Type
|
System.EventHandler
|