New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Constructors

C#
public ChangeLayoutModeCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

Properties

Gets a value indicating whether the behavior of the command can be executed in a protected document.

C#
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }

Overrides: RichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocument

Gets a value indicating whether this command can be executed when editing context is read-only. The default implementation returns false.

C#
protected override bool CanExecuteInReadOnlyRange { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyRange

Methods

Performs the execute action specific to the command.

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

The command parameter.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)

C#
protected virtual void OnLayoutModeChanged(DocumentLayoutMode oldValue, DocumentLayoutMode newValue)
Parameters:oldValueDocumentLayoutModenewValueDocumentLayoutMode
C#
protected override void UpdateSpanStyle()

Overrides: RichTextBoxCommandBase.UpdateSpanStyle()

Events

C#
public event EventHandler<StylePropertyChangedEventArgs<DocumentLayoutMode>> LayoutModeChanged