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:
public class ChangeParagraphFlowDirectionCommand : RichTextBoxCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseChangeParagraphFlowDirectionCommand
Implements:
Inherited Members
Constructors
public ChangeParagraphFlowDirectionCommand(RadRichTextBox editor)
Methods
Performs the execute action specific to the command.
protected override void ExecuteOverride(object parameter)
The command parameter.
Overrides:
GetEventArgs()
StylePropertyChangedEventArgs<FlowDirection?>
Retrieves the event arguments associated with the ChangeParagraphFlowDirectionCommand.
public StylePropertyChangedEventArgs<FlowDirection?> GetEventArgs()
StylePropertyChangedEventArgs<FlowDirection?>
An instance of EventArgs that contains the event data related to the command.
protected virtual void OnFlowDirectionChanged(StylePropertyChangedEventArgs<FlowDirection?> e)
Tries to convert the specified command parameter to a FlowDirection value.
public static bool TryConvertCommandParameter(object commandParameter, out FlowDirection flowDirection)
The command parameter to be converted.
flowDirectionFlowDirectionWhen this method returns, contains the FlowDirection value if the conversion succeeded; otherwise, the default value of FlowDirection.
Returns:Returns true if the conversion was successful; otherwise, false.
protected override void UpdateSpanStyle()
Overrides:
Events
FlowDirectionChanged
EventHandler<StylePropertyChangedEventArgs<FlowDirection?>>
public event EventHandler<StylePropertyChangedEventArgs<FlowDirection?>> FlowDirectionChanged