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

Tracks selection and caret changes for drawing-context commands and provides a helper for checking the current drawing context.

Definition

Constructors

Creates a command that tracks drawing context changes in the specified editor.

C#
public DrawingContextCommandBase(RadRichTextBox editor)
Parameters:editorRadRichTextBox

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.

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

The document whose selection and caret are checked.

Returns:

bool

true when a single drawing is selected or, with an empty selection, the current inline is a drawing or floating drawing block.