NewDocumentCommand
Class
Replaces the editor's current document with a new empty document in paged layout mode.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
C#
public class NewDocumentCommand : RichTextBoxCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseNewDocumentCommand
Implements:
Inherited Members
Constructors
Initializes the command for the specified editor.
C#
public NewDocumentCommand(RadRichTextBox editor)
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:
Gets a value indicating that creating a document is allowed in read-only ranges.
C#
protected override bool CanExecuteInReadOnlyRange { get; }
Overrides:
Methods
Creates a new paged document and assigns it to the editor.
C#
protected override void ExecuteOverride(object parameter)
Not used.
Overrides: