Tracks selection and caret changes for drawing-context commands and provides a helper for checking the current drawing context.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public abstract class DrawingContextCommandBase : RichTextBoxCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseDrawingContextCommandBase
Derived Classes:
Implements:
Inherited Members
Constructors
Creates a command that tracks drawing context changes in the specified editor.
public DrawingContextCommandBase(RadRichTextBox editor)
The editor whose selection and caret determine drawing context.
Methods
Determines whether a single drawing is selected or an empty selection has the caret on a drawing.
public static bool CanExecuteDrawingContextCommand(RadDocument doc)
The document whose selection and caret are checked.
Returns:true when a single drawing is selected or, with an empty selection, the current inline is a drawing or floating drawing block.