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

Toggles the document-wide option to use different headers and footers on odd and even pages.

Definition

Constructors

Creates the command for the specified editor.

C#
public ToggleDifferentOddAndEvenPagesHeaderFooterCommand(RadRichTextBox radRichTextBox)
Parameters:radRichTextBoxRadRichTextBox

The editor whose document setting is changed.

Properties

Disables the command when document protection is enforced.

C#
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }

Overrides: RichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocument

Allows command availability checks in read-only ranges; changing the setting still requires editing permission.

C#
protected override bool CanExecuteInReadOnlyRange { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyRange

Methods

Inverts the document-wide odd/even header and footer setting.

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

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)

Gets whether the document uses different headers and footers on odd and even pages.

C#
protected override bool GetToggleState()
Returns:

bool

true when the document-wide setting is enabled; otherwise, false.

Overrides: ToggleCommandBase.GetToggleState()

Raises ToggleStateChanged when the document-wide setting changes.

C#
protected override void UpdateSectionStyle()

Overrides: RichTextBoxCommandBase.UpdateSectionStyle()