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

Replaces the editor's current document with a new empty document in paged layout mode.

Definition

Constructors

Initializes the command for the specified editor.

C#
public NewDocumentCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The rich text box whose document is replaced.

Properties

Gets Always because replacing the document is allowed in protected documents.

C#
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }

Overrides: RichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocument

Gets a value indicating that creating a document is allowed in read-only ranges.

C#
protected override bool CanExecuteInReadOnlyRange { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyRange

Methods

Creates a new paged document and assigns it to the editor.

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

Not used.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)