Provides shared availability, focus, and change notification behavior for section header and footer margin commands.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public abstract class ChangeSectionHeaderFooterMarginBase : RichTextBoxCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseChangeSectionHeaderFooterMarginBase
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes the base command for the specified editor.
public ChangeSectionHeaderFooterMarginBase(RadRichTextBox radRichTextBox)
The editor whose section margins are observed and changed.
Properties
Disables derived margin commands when document protection is enforced.
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }
Overrides:
Allows command availability checks in read-only ranges; derived margin updates still require editing permission.
protected override bool CanExecuteInReadOnlyRange { get; }
Overrides:
Prevents the base command from explicitly focusing the editor after execution.
protected override bool ShouldFocusCaretAfterExecute { get; }
Overrides:
Methods
Raises HeaderFooterMarginChanged with the previous and current margin values.
protected virtual void OnHeaderFooterMarginChanged(StylePropertyChangedEventArgs<int> e)
The old and new margin values.
Events
Occurs when a derived command observes a change in its header or footer margin value.
public event EventHandler<StylePropertyChangedEventArgs<int>> HeaderFooterMarginChanged