Provides shared availability checks for commands that operate on an image selected in the document or under the caret.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public abstract class ImageContextCommandBase : RichTextBoxCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseImageContextCommandBase
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes image-context tracking for the specified editor.
public ImageContextCommandBase(RadRichTextBox editor)
The editor whose selection and caret determine image availability.
Methods
Determines whether the document has one image selected, or an image at the caret with no selection.
public static bool CanExecuteImageContextCommand(RadDocument doc)
The document whose selection and caret are checked.
Returns:true when the selected or current inline is an ImageInline or FloatingImageBlock.
Returns whether an image is selected or the caret is positioned on an image.