Class
EditHeaderCommand

Represents a command that activates the header editing mode.

Definition

Namespace:Telerik.Windows.Documents.RichTextBoxCommands

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class EditHeaderCommand : RichTextBoxCommandBase, ICommand

Inheritance: objectRichTextBoxCommandBaseEditHeaderCommand

Implements: ICommand

Inherited Members RichTextBoxCommandBase.CanExecute(object)RichTextBoxCommandBase.CanExecuteOverride(object)RichTextBoxCommandBase.Execute()RichTextBoxCommandBase.Execute(object)RichTextBoxCommandBase.GetSelectedInlineOrSelectCurrent()RichTextBoxCommandBase.Execute(object, bool)RichTextBoxCommandBase.UpdateSpanStyle()RichTextBoxCommandBase.UpdateSectionStyle()RichTextBoxCommandBase.GetCurrentParagraphStyle()RichTextBoxCommandBase.GetCurrentSpanStyle()RichTextBoxCommandBase.GetCurrentSectionStyle()RichTextBoxCommandBase.OnCanExecuteChanged()RichTextBoxCommandBase.AssociatedRichTextBoxRichTextBoxCommandBase.IsDeletingCommandRichTextBoxCommandBase.ShouldFocusCaretAfterExecuteRichTextBoxCommandBase.EnabledRichTextBoxCommandBase.CanExecuteChanged

Constructors

EditHeaderCommand(RadRichTextBox)

Initializes a new instance of the EditHeaderCommand class.

Declaration

cs-api-definition
public EditHeaderCommand(RadRichTextBox editor)

Parameters

editor

RadRichTextBox

The editor.

Properties

CanExecuteBehaviorInProtectedDocument

Gets a value indicating whether the behavior of the command can be executed in a protected document.

Declaration

cs-api-definition
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }

Property Value

CanExecuteBehaviorInProtectedDocument

Overrides RichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocument

CanExecuteInReadOnlyMode

Gets a value indicating whether this command can be executed when RadRichTextBox is read-only. The default implementation returns true.

Declaration

cs-api-definition
protected override bool CanExecuteInReadOnlyMode { get; }

Property Value

bool

true if this command preserves document's content; otherwise, false.

Overrides RichTextBoxCommandBase.CanExecuteInReadOnlyMode

CanExecuteInReadOnlyRange

Gets a value indicating whether this command can be executed when editing context is read-only.

Declaration

cs-api-definition
protected override bool CanExecuteInReadOnlyRange { get; }

Property Value

bool

Overrides RichTextBoxCommandBase.CanExecuteInReadOnlyRange

SupportedTargets

Gets the supported CommandTargets for the command.

Declaration

cs-api-definition
protected override CommandTargets SupportedTargets { get; }

Property Value

CommandTargets

Overrides RichTextBoxCommandBase.SupportedTargets

Methods

ExecuteOverride(object)

Performs the execute action specific to the command.

Declaration

cs-api-definition
protected override void ExecuteOverride(object parameter)

Parameters

parameter

object

The command parameter.

Overrides RichTextBoxCommandBase.ExecuteOverride(object)