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

Inserts a document fragment at the caret, replacing selected content when present.

Definition

Constructors

Initializes the command for the specified editor.

C#
public InsertDocumentFragmentCommand(RadRichTextBox radRichTextBox)
Parameters:radRichTextBoxRadRichTextBox

The editor into which the fragment is inserted.

Properties

Marks fragment insertion as an operation that may replace selected content for protected-range permission checks.

C#
protected override bool IsDeletingCommand { get; }

Overrides: RichTextBoxCommandBase.IsDeletingCommand

Methods

Inserts the supplied fragment when the command parameter is a DocumentFragment.

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

The fragment to insert; parameters of other types are ignored.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)