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

Exits header/footer editing mode and returns the editor to document-body editing.

Definition

Constructors

Creates the command and tracks header/footer mode changes to refresh its availability.

C#
public ExitHeaderFooterEditModeCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The editor whose header/footer editing mode can be exited.

Properties

Allows availability checks when the current editing context is read-only.

C#
protected override bool CanExecuteInReadOnlyRange { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyRange

Declares the document-body and header/footer targets; command availability is separately limited to header/footer edit mode.

C#
protected override CommandTargets SupportedTargets { get; }

Overrides: RichTextBoxCommandBase.SupportedTargets

Methods

Determines whether the editor is currently in header/footer edit mode.

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

bool

true when the editor is in header/footer edit mode; otherwise, false.

Overrides: RichTextBoxCommandBase.CanExecuteOverride(object)

Leaves header/footer editing mode.

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

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)