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

Provides command availability and caret-based lookup for commands that operate on a field range start. Availability requires a field of the specified type at the caret and an empty selection.

Definition

Namespace:Telerik.WinForms.Documents.RichTextBoxCommands

Assembly:Telerik.WinControls.RichTextEditor.dll

Type Parameters:

T

The field range start type the command locates.

Syntax:

C#
public abstract class FieldRangeStartBaseCommandBase<T> : RichTextBoxCommandBase, ICommand where T : FieldRangeStartBase

Inheritance: objectRichTextBoxCommandBaseFieldRangeStartBaseCommandBase<T>

Derived Classes: CopyHyperlinkCommandOpenHyperlinkCommandRemoveHyperlinkCommandSelectHyperlinkCommandToggleFieldDisplayModeCommandUpdateFieldCommand...

Implements: ICommand

Inherited Members RichTextBoxCommandBase.CanExecute(object)RichTextBoxCommandBase.Execute()RichTextBoxCommandBase.Execute(object)RichTextBoxCommandBase.GetSelectedInlineOrSelectCurrent()RichTextBoxCommandBase.Execute(object, bool)RichTextBoxCommandBase.ExecuteOverride(object)RichTextBoxCommandBase.UpdateSpanStyle()RichTextBoxCommandBase.UpdateSectionStyle()RichTextBoxCommandBase.GetCurrentParagraphStyle()RichTextBoxCommandBase.GetCurrentSpanStyle()RichTextBoxCommandBase.GetCurrentSectionStyle()RichTextBoxCommandBase.OnCanExecuteChanged()RichTextBoxCommandBase.AssociatedRichTextBoxRichTextBoxCommandBase.CanExecuteInReadOnlyModeRichTextBoxCommandBase.CanExecuteInReadOnlyRangeRichTextBoxCommandBase.IsDeletingCommandRichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocumentRichTextBoxCommandBase.ShouldFocusCaretAfterExecuteRichTextBoxCommandBase.SupportedTargetsRichTextBoxCommandBase.EnabledRichTextBoxCommandBase.CanExecuteChanged...

Constructors

Initializes the base command and tracks caret and selection changes that affect field availability.

C#
protected FieldRangeStartBaseCommandBase(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The editor whose caret and selection determine command availability.

Methods

Returns the availability cached from the current caret and selection context.

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

Not used; availability is based on the editor state.

Returns:

bool

true when the caret is in a matching field and the selection is empty.

Overrides: RichTextBoxCommandBase.CanExecuteOverride(object)

Gets the innermost matching field range containing the inline at the caret.

C#
protected T GetCurrentInnerFieldRangeStart()
Returns:

T

The innermost matching field range start, or null when no inline or matching field is found.

Gets the outermost matching field range containing the inline at the caret.

C#
protected T GetCurrentOuterFieldRangeStart()
Returns:

T

The outermost matching field range start, or null when no inline or matching field is found.