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

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

Definition

Constructors

C#
public ChangeParagraphFlowDirectionCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

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)

Retrieves the event arguments associated with the ChangeParagraphFlowDirectionCommand.

C#
public StylePropertyChangedEventArgs<FlowDirection?> GetEventArgs()
Returns:

StylePropertyChangedEventArgs<FlowDirection?>

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

C#
protected virtual void OnFlowDirectionChanged(StylePropertyChangedEventArgs<FlowDirection?> e)
Parameters:eStylePropertyChangedEventArgs<FlowDirection?>

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

C#
public static bool TryConvertCommandParameter(object commandParameter, out FlowDirection flowDirection)
Parameters:commandParameterobject

The command parameter to be converted.

flowDirectionFlowDirection

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.

C#
protected override void UpdateSpanStyle()

Overrides: RichTextBoxCommandBase.UpdateSpanStyle()

Events

C#
public event EventHandler<StylePropertyChangedEventArgs<FlowDirection?>> FlowDirectionChanged