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

Represents the base class for commands that operate on image context in the RichTextBox.

Definition

Constructors

C#
public ImageContextCommandBase(RadRichTextBox editor)
Parameters:editorRadRichTextBox

Methods

Determines whether the image context command can be executed, based on the provided RadDocument.

C#
public static bool CanExecuteImageContextCommand(RadDocument doc)
Parameters:docRadDocument

The RadDocument to evaluate for command execution.

Returns:

bool

True if the image context command can be executed; otherwise, false.

Performs a check whether the command can be executed specific to the command.

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

The command parameter.

Returns:

bool

Overrides: RichTextBoxCommandBase.CanExecuteOverride(object)