New to Telerik UI for WinForms? Start a free 30-day trial

Requests the configured image editor dialog, which opens only when an image can be resolved from the selection or caret.

Definition

Constructors

Creates a command that opens the image editor for the specified editor's image.

C#
public ShowImageEditorCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The editor whose image can be edited.

Properties

Prevents the base command from explicitly focusing the editor after the dialog call returns.

C#
protected override bool ShouldFocusCaretAfterExecute { get; }

Overrides: RichTextBoxCommandBase.ShouldFocusCaretAfterExecute

Methods

Does not check for an image context; image resolution is deferred until the dialog method is called.

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

Not used; availability is based on the editor context.

Returns:

bool

true; the dialog method performs the image-context check.

Overrides: ImageContextCommandBase.CanExecuteOverride(object)

Delegates to the editor's image-dialog method, which shows the configured dialog only when an image can be resolved from the current context.

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

Not used; the image is resolved from the current selection or caret.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)