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

Changes how all fields are displayed, or recalculates them when the requested mode is Result.

Definition

Constructors

Creates a command that changes the display mode of fields in the specified editor.

C#
public ChangeAllFieldsDisplayModeCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The editor whose document fields can be changed.

Properties

Allows the command to remain available when the editing context is read-only.

C#
protected override bool CanExecuteInReadOnlyRange { get; }

Overrides: MailMergeDataSourceContextCommandBase.CanExecuteInReadOnlyRange

Applies deleting-command permission rules when checking whether the command can run in protected ranges.

C#
protected override bool IsDeletingCommand { get; }

Overrides: RichTextBoxCommandBase.IsDeletingCommand

Methods

Updates all fields when the requested mode is Result; otherwise changes their display mode.

C#
protected override void ExecuteOverride(object parameter)
Parameters:parameterobject

A FieldDisplayMode value or a string that parses as one; other values leave the document unchanged.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)