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

Class SyntaxEditorDelegateCommand. Implements the SyntaxEditorCommandBase

Definition

Namespace:Telerik.WinForms.SyntaxEditor.Commands

Assembly:Telerik.WinControls.SyntaxEditor.dll

Syntax:

C#
public class SyntaxEditorDelegateCommand : SyntaxEditorCommandBase, ICommand

Inheritance: objectSyntaxEditorCommandBaseSyntaxEditorDelegateCommand

Derived Classes: SyntaxEditorEditingCommand

Implements: ICommand

Inherited Members SyntaxEditorCommandBase.CanExecute(object)SyntaxEditorCommandBase.Execute(object)SyntaxEditorCommandBase.OnCanExecuteChanged()SyntaxEditorCommandBase.AssociatedSyntaxEditorSyntaxEditorCommandBase.CanExecuteChanged

Constructors

Initializes a new instance of the SyntaxEditorDelegateCommand class.

C#
public SyntaxEditorDelegateCommand(Action<RadSyntaxEditorElement, object> commandAction, RadSyntaxEditorElement editor)
Parameters:commandActionAction<RadSyntaxEditorElement, object>

The command action.

editorRadSyntaxEditorElement

The editor.

Methods

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

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

The parameter.

Returns:

bool

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

Overrides: SyntaxEditorCommandBase.CanExecuteOverride(object)

Executes the override.

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

The parameter.

Overrides: SyntaxEditorCommandBase.ExecuteOverride(object)