Changes how all fields are displayed, or recalculates them when the requested mode is Result.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class ChangeAllFieldsDisplayModeCommand : MailMergeDataSourceContextCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseMailMergeDataSourceContextCommandBaseChangeAllFieldsDisplayModeCommand
Implements:
Inherited Members
Constructors
Creates a command that changes the display mode of fields in the specified editor.
public ChangeAllFieldsDisplayModeCommand(RadRichTextBox editor)
The editor whose document fields can be changed.
Properties
Allows the command to remain available when the editing context is read-only.
protected override bool CanExecuteInReadOnlyRange { get; }
Overrides:
Applies deleting-command permission rules when checking whether the command can run in protected ranges.
protected override bool IsDeletingCommand { get; }
Overrides:
Methods
Updates all fields when the requested mode is Result; otherwise changes their display mode.
protected override void ExecuteOverride(object parameter)
A FieldDisplayMode value or a string that parses as one; other values leave the document unchanged.
Overrides: