Class
ImageContextCommandBase

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

Definition

Namespace:Telerik.Windows.Documents.RichTextBoxCommands

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public abstract class ImageContextCommandBase : RichTextBoxCommandBase, ICommand

Inheritance: objectRichTextBoxCommandBaseImageContextCommandBase

Derived Classes: ChangeImageWrappingStyleCommandConvertImageToImageInlineCommandShowImageEditorCommand

Implements: ICommand

Inherited Members RichTextBoxCommandBase.CanExecute(object)RichTextBoxCommandBase.Execute()RichTextBoxCommandBase.Execute(object)RichTextBoxCommandBase.GetSelectedInlineOrSelectCurrent()RichTextBoxCommandBase.Execute(object, bool)RichTextBoxCommandBase.ExecuteOverride(object)RichTextBoxCommandBase.UpdateSpanStyle()RichTextBoxCommandBase.UpdateSectionStyle()RichTextBoxCommandBase.GetCurrentParagraphStyle()RichTextBoxCommandBase.GetCurrentSpanStyle()RichTextBoxCommandBase.GetCurrentSectionStyle()RichTextBoxCommandBase.OnCanExecuteChanged()RichTextBoxCommandBase.AssociatedRichTextBoxRichTextBoxCommandBase.CanExecuteInReadOnlyModeRichTextBoxCommandBase.CanExecuteInReadOnlyRangeRichTextBoxCommandBase.IsDeletingCommandRichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocumentRichTextBoxCommandBase.ShouldFocusCaretAfterExecuteRichTextBoxCommandBase.SupportedTargetsRichTextBoxCommandBase.EnabledRichTextBoxCommandBase.CanExecuteChanged

Constructors

ImageContextCommandBase(RadRichTextBox)

Declaration

cs-api-definition
public ImageContextCommandBase(RadRichTextBox editor)

Parameters

editor

RadRichTextBox

Methods

CanExecuteImageContextCommand(RadDocument)

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

Declaration

cs-api-definition
public static bool CanExecuteImageContextCommand(RadDocument doc)

Parameters

doc

RadDocument

The RadDocument to evaluate for command execution.

Returns

bool

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

CanExecuteOverride(object)

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

Declaration

cs-api-definition
protected override bool CanExecuteOverride(object parameter)

Parameters

parameter

object

The command parameter.

Returns

bool

Overrides RichTextBoxCommandBase.CanExecuteOverride(object)