Class
ChangeParagraphFlowDirectionCommand

Represents a command that changes the flow direction of a paragraph in a rich text box.

Definition

Namespace:Telerik.Windows.Documents.RichTextBoxCommands

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class ChangeParagraphFlowDirectionCommand : RichTextBoxCommandBase, ICommand

Inheritance: objectRichTextBoxCommandBaseChangeParagraphFlowDirectionCommand

Implements: ICommand

Inherited Members RichTextBoxCommandBase.CanExecute(object)RichTextBoxCommandBase.CanExecuteOverride(object)RichTextBoxCommandBase.Execute()RichTextBoxCommandBase.Execute(object)RichTextBoxCommandBase.GetSelectedInlineOrSelectCurrent()RichTextBoxCommandBase.Execute(object, bool)RichTextBoxCommandBase.UpdateSectionStyle()RichTextBoxCommandBase.GetCurrentParagraphStyle()RichTextBoxCommandBase.GetCurrentSpanStyle()RichTextBoxCommandBase.GetCurrentSectionStyle()RichTextBoxCommandBase.OnCanExecuteChanged()RichTextBoxCommandBase.AssociatedRichTextBoxRichTextBoxCommandBase.CanExecuteInReadOnlyModeRichTextBoxCommandBase.CanExecuteInReadOnlyRangeRichTextBoxCommandBase.IsDeletingCommandRichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocumentRichTextBoxCommandBase.ShouldFocusCaretAfterExecuteRichTextBoxCommandBase.SupportedTargetsRichTextBoxCommandBase.EnabledRichTextBoxCommandBase.CanExecuteChanged

Constructors

ChangeParagraphFlowDirectionCommand(RadRichTextBox)

Declaration

cs-api-definition
public ChangeParagraphFlowDirectionCommand(RadRichTextBox editor)

Parameters

editor

RadRichTextBox

Methods

ExecuteOverride(object)

Performs the execute action specific to the command.

Declaration

cs-api-definition
protected override void ExecuteOverride(object parameter)

Parameters

parameter

object

The command parameter.

Overrides RichTextBoxCommandBase.ExecuteOverride(object)

GetEventArgs()

Retrieves the event arguments associated with the ChangeParagraphFlowDirectionCommand.

Declaration

cs-api-definition
public StylePropertyChangedEventArgs<FlowDirection?> GetEventArgs()

Returns

StylePropertyChangedEventArgs<FlowDirection?>

An instance of EventArgs that contains the event data related to the command.

OnFlowDirectionChanged(StylePropertyChangedEventArgs<FlowDirection?>)

Declaration

cs-api-definition
protected virtual void OnFlowDirectionChanged(StylePropertyChangedEventArgs<FlowDirection?> e)

Parameters

e

StylePropertyChangedEventArgs<FlowDirection?>

TryConvertCommandParameter(object, out FlowDirection)

Tries to convert the specified command parameter to a FlowDirection value.

Declaration

cs-api-definition
public static bool TryConvertCommandParameter(object commandParameter, out FlowDirection flowDirection)

Parameters

commandParameter

object

The command parameter to be converted.

flowDirection

FlowDirection

When this method returns, contains the FlowDirection value if the conversion succeeded; otherwise, the default value of FlowDirection.

Returns

bool

Returns true if the conversion was successful; otherwise, false.

UpdateSpanStyle()

Declaration

cs-api-definition
protected override void UpdateSpanStyle()

Overrides RichTextBoxCommandBase.UpdateSpanStyle()

Events

FlowDirectionChanged

Declaration

cs-api-definition
public event EventHandler<StylePropertyChangedEventArgs<FlowDirection?>> FlowDirectionChanged

Event Value

EventHandler<StylePropertyChangedEventArgs<FlowDirection?>>