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

Inserts a line, page, or column break according to the command parameter.

Definition

Constructors

Creates the break-insertion command for the specified editor.

C#
public InsertBreakCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The editor where the break is inserted.

Properties

Restricts break insertion to document-body editing.

C#
protected override CommandTargets SupportedTargets { get; }

Overrides: RichTextBoxCommandBase.SupportedTargets

Methods

Inserts the requested break as one undo group; page breaks are followed by a document newline.

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

A defined BreakType, a string parsed as one, or, in non-WinForms builds, a framework element whose Tag parses as one. Unsupported types and unparseable values are ignored.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)