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

Opens the properties dialog appropriate to the content control containing the caret.

Definition

Constructors

Creates a command that opens content-control properties for the specified editor.

C#
public ShowContentControlPropertiesDialogCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The editor whose current content control is edited.

Properties

Allows the command to run when the caret is in a read-only range.

C#
protected override bool CanExecuteInReadOnlyRange { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyRange

Methods

Enables the command when the document and a containing content control are available at the caret.

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

Not used; availability depends on the caret position.

Returns:

bool

true when the caret is contained by a content control in an available document.

Overrides: RichTextBoxCommandBase.CanExecuteOverride(object)

Opens the dialog associated with the innermost content control at the caret; picture controls also hide the image mini toolbar.

C#
protected override void ExecuteOverride(object parameter)
Parameters:parameterobject

Not used by this command.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)