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

Toggles separate first-page headers and footers using the inverse of the current section's setting. In document-body mode, the change applies to selected sections; in header/footer edit mode, it applies to the current section.

Definition

Constructors

Creates the command for the specified editor.

C#
public ToggleDifferentFirstPageHeaderFooterCommand(RadRichTextBox radRichTextBox)
Parameters:radRichTextBoxRadRichTextBox

The editor whose selected sections or current section are updated.

Properties

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

Applies the inverse of the current section's setting to the selected sections in document-body mode, or to the current section in header/footer edit mode.

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

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)

Gets whether the current section uses a distinct header and footer on its first page.

C#
protected override bool GetToggleState()
Returns:

bool

true when the setting is enabled for the current section; otherwise, false.

Overrides: ToggleCommandBase.GetToggleState()

Raises ToggleStateChanged when the current section's setting changes.

C#
protected override void UpdateSectionStyle()

Overrides: RichTextBoxCommandBase.UpdateSectionStyle()