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

Provides command availability for operations that require a mail merge data source with an assigned items source. Commands based on this type remain available in read-only ranges.

Definition

Constructors

Initializes the base command and tracks changes to the editor's mail merge data source.

C#
protected MailMergeDataSourceContextCommandBase(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The editor whose mail merge data source determines command availability.

Properties

Allows commands based on this type to remain available when the editing context is read-only.

C#
protected override bool CanExecuteInReadOnlyRange { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyRange

Methods

Returns whether the document has a mail merge items source.

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

Not used; availability is based on the document's mail merge data source.

Returns:

bool

true when the mail merge data source has a non-null items source.

Overrides: RichTextBoxCommandBase.CanExecuteOverride(object)