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

Provides shared availability, focus, and change notification behavior for section header and footer margin commands.

Definition

Constructors

Initializes the base command for the specified editor.

C#
public ChangeSectionHeaderFooterMarginBase(RadRichTextBox radRichTextBox)
Parameters:radRichTextBoxRadRichTextBox

The editor whose section margins are observed and changed.

Properties

Disables derived margin commands when document protection is enforced.

C#
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }

Overrides: RichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocument

Allows command availability checks in read-only ranges; derived margin updates still require editing permission.

C#
protected override bool CanExecuteInReadOnlyRange { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyRange

Prevents the base command from explicitly focusing the editor after execution.

C#
protected override bool ShouldFocusCaretAfterExecute { get; }

Overrides: RichTextBoxCommandBase.ShouldFocusCaretAfterExecute

Methods

Raises HeaderFooterMarginChanged with the previous and current margin values.

C#
protected virtual void OnHeaderFooterMarginChanged(StylePropertyChangedEventArgs<int> e)
Parameters:eStylePropertyChangedEventArgs<int>

The old and new margin values.

Events

Occurs when a derived command observes a change in its header or footer margin value.

C#
public event EventHandler<StylePropertyChangedEventArgs<int>> HeaderFooterMarginChanged