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

Opens the print preview for the editor's current document.

Definition

Constructors

Initializes the command for the specified editor.

C#
public PrintPreviewCommand(RadRichTextBox radRichTextBox)
Parameters:radRichTextBoxRadRichTextBox

The rich text box whose document is previewed.

Properties

Gets Always because print preview does not edit the document.

C#
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }

Overrides: RichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocument

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

C#
protected override bool CanExecuteInReadOnlyMode { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyMode

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

C#
protected override bool CanExecuteInReadOnlyRange { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyRange

Methods

Opens print preview for the editor's current document.

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

Not used.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)