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

Prints the editor's current document using supplied settings or the default native print settings.

Definition

Constructors

Initializes the command for the specified editor.

C#
public PrintCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The rich text box whose document is printed.

Properties

Gets Always because printing does not edit the document.

C#
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }

Overrides: RichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocument

Gets a value indicating that printing is allowed when the editor is in read-only mode.

C#
protected override bool CanExecuteInReadOnlyMode { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyMode

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

C#
protected override bool CanExecuteInReadOnlyRange { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyRange

Methods

Prints the current document using the supplied mode or settings.

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

A defined PrintMode value, a string parsed as a PrintMode (numeric strings are not checked against defined members), a PrintSettings instance, or null to use default settings. Other values and unparseable strings are ignored.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)