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

Selects the document content unless a mouse selection is currently in progress.

Definition

Constructors

Initializes a new instance of the SelectAllCommand class.

C#
public SelectAllCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The associated RadRichTextBox.

Properties

Allows this selection command to run regardless of protected-document permission ranges.

C#
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }

Overrides: RichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocument

Allows selecting content when the editor is read-only.

C#
protected override bool CanExecuteInReadOnlyMode { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyMode

Allows selecting content in a read-only range.

C#
protected override bool CanExecuteInReadOnlyRange { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyRange

Methods

Enables the command only while an editor and its document are available.

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

Not used by this command.

Returns:

bool

true when the associated editor and document are available.

Overrides: RichTextBoxCommandBase.CanExecuteOverride(object)

Selects all document content unless the mouse selection handler is currently dragging.

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

Not used by this command.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)