ClassChangeLayoutModeCommand
Represents the command to change the layout mode of the RichTextBox.
Definition
Namespace:Telerik.Windows.Documents.RichTextBoxCommands
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class ChangeLayoutModeCommand : RichTextBoxCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseChangeLayoutModeCommand
Implements:
Inherited Members
Constructors
ChangeLayoutModeCommand(RadRichTextBox)
Declaration
public ChangeLayoutModeCommand(RadRichTextBox editor)
Parameters
editor
Properties
CanExecuteBehaviorInProtectedDocument
Gets a value indicating whether the behavior of the command can be executed in a protected document.
Declaration
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }
Property Value
Overrides
CanExecuteInReadOnlyRange
Gets a value indicating whether this command can be executed when editing context is read-only. The default implementation returns false.
Declaration
protected override bool CanExecuteInReadOnlyRange { get; }
Property Value
Overrides
Methods
ExecuteOverride(object)
Performs the execute action specific to the command.
Declaration
protected override void ExecuteOverride(object parameter)
Parameters
parameter
The command parameter.
Overrides
OnLayoutModeChanged(DocumentLayoutMode, DocumentLayoutMode)
Declaration
protected virtual void OnLayoutModeChanged(DocumentLayoutMode oldValue, DocumentLayoutMode newValue)
Parameters
oldValue
newValue
UpdateSpanStyle()
Declaration
protected override void UpdateSpanStyle()
Overrides
Events
LayoutModeChanged
Declaration
public event EventHandler<StylePropertyChangedEventArgs<DocumentLayoutMode>> LayoutModeChanged
Event Value
EventHandler<StylePropertyChangedEventArgs<DocumentLayoutMode>>