Toggles merge-field highlighting in the editor and exposes its current state to toggle controls. The command is available when a mail merge items source is assigned.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class ToggleMergeFieldsHighlightCommand : ToggleCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseToggleCommandBaseToggleMergeFieldsHighlightCommand
Implements:
Inherited Members
Constructors
Creates a command that toggles merge-field highlighting in the specified editor.
public ToggleMergeFieldsHighlightCommand(RadRichTextBox editor)
The editor whose merge-field highlighting state is toggled.
Properties
Allows the visual toggle even when document protection is enforced.
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }
Overrides:
Allows the visual toggle when the caret or selection is in a read-only range.
protected override bool CanExecuteInReadOnlyRange { get; }
Overrides:
Methods
Returns whether the document has a mail merge items source.
Reverses the editor's current merge-field highlighting setting.
protected override void ExecuteOverride(object parameter)
Not used; the command always reverses the current setting.
Overrides:
Does not update span formatting because merge-field highlighting is controlled by an editor-level setting.
protected override void UpdateSpanStyle()
Overrides: