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

Toggles whether the active section header or footer shares content with the corresponding one in the previous section.

Definition

Constructors

Creates the command for the specified editor and tracks active header/footer context changes.

C#
public ToggleHeaderFooterLinkToPreviousCommand(RadRichTextBox radRichTextBox)
Parameters:radRichTextBoxRadRichTextBox

The editor whose active header or footer is updated.

Properties

Allows command routing while switching between the document body and header/footer editing contexts.

C#
protected override CommandTargets SupportedTargets { get; }

Overrides: RichTextBoxCommandBase.SupportedTargets

Methods

Gets whether the active header/footer is in a section that has a previous section.

C#
protected override bool CanExecuteOverride(object parameter)
Parameters:parameterobjectReturns:

bool

true when the command can link the active header/footer to a previous section; otherwise, false.

Overrides: RichTextBoxCommandBase.CanExecuteOverride(object)

Toggles the active header or footer's link to the previous section.

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

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)

Gets the link state of the active header or footer; returns false when neither is active.

C#
protected override bool GetToggleState()
Returns:

bool

true when the active header/footer is linked to the previous section; otherwise, false.

Overrides: ToggleCommandBase.GetToggleState()

Does not refresh the link state when span formatting changes; the state follows header/footer context changes.

C#
protected override void UpdateSpanStyle()

Overrides: ToggleCommandBase.UpdateSpanStyle()