ClassSyntaxEditorCommandBase
Class SyntaxEditorCommandBase. Implements the ICommand
Definition
Namespace:Telerik.Windows.Controls.SyntaxEditor.Commands
Assembly:Telerik.Windows.Controls.SyntaxEditor.dll
Syntax:
public abstract class SyntaxEditorCommandBase : ICommand
Inheritance: objectSyntaxEditorCommandBase
Derived Classes:
Implements:
Constructors
SyntaxEditorCommandBase(RadSyntaxEditor)
Initializes a new instance of the SyntaxEditorCommandBase class.
Declaration
[SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
protected SyntaxEditorCommandBase(RadSyntaxEditor editor)
Parameters
editor
The editor.
Properties
AssociatedSyntaxEditor
Gets the associated code editor.
Declaration
public RadSyntaxEditor AssociatedSyntaxEditor { get; }
Property Value
The associated code editor.
Methods
CanExecute(object)
Defines the method that determines whether the command can execute in its current state.
CanExecuteOverride(object)
Determines whether this instance [can execute override] the specified parameter.
Execute(object)
Defines the method to be called when the command is invoked.
Declaration
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")]
public void Execute(object parameter)
Parameters
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
parameter
The parameter.
OnCanExecuteChanged()
Called when [can execute changed].
Declaration
protected virtual void OnCanExecuteChanged()
Events
CanExecuteChanged
CanExecuteChanged event.
Declaration
public event EventHandler CanExecuteChanged
Event Value
Implements