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

Inserts a section break of the requested type in the document body.

Definition

Constructors

Initializes the command for the specified editor.

C#
public InsertSectionBreakCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The editor whose document body receives the section break.

Properties

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

C#
protected override bool IsDeletingCommand { get; }

Overrides: RichTextBoxCommandBase.IsDeletingCommand

Limits this command to document-body content.

C#
protected override CommandTargets SupportedTargets { get; }

Overrides: RichTextBoxCommandBase.SupportedTargets

Methods

Inserts the requested section break when the parameter can be converted and the current position permits section-break insertion.

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

A SectionBreakType, its parseable string name, or in WinForms a UI element whose Tag contains that name. Other parameter types are ignored.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)