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

Changes the page orientation of the section or sections identified by the editor's current selection.

Definition

Constructors

Creates a command that changes page orientation for the specified editor's selected section or sections.

C#
public ChangePageOrientationCommand(RadRichTextBox radRichTextBox)
Parameters:radRichTextBoxRadRichTextBox

The editor whose current section is updated.

Properties

Disables the command when document protection is enforced.

C#
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }

Overrides: RichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocument

Allows the availability check to pass in read-only ranges; the section update still requires editing permission.

C#
protected override bool CanExecuteInReadOnlyRange { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyRange

Methods

Requests the section update when the parameter identifies a defined orientation; the editor's permission checks may prevent the change.

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

A PageOrientation value, a parseable enum name, or an element whose Tag contains that name.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)