Changes paragraph flow direction; requesting the last observed direction toggles to its opposite.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class ChangeParagraphFlowDirectionCommand : RichTextBoxCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseChangeParagraphFlowDirectionCommand
Implements:
Inherited Members
Constructors
Initializes the command for the specified editor.
public ChangeParagraphFlowDirectionCommand(RadRichTextBox editor)
The rich text box whose paragraph direction this command changes.
Methods
Applies a parsed direction, toggling to the opposite direction when it matches the last observed value.
protected override void ExecuteOverride(object parameter)
A FlowDirection value or a string parseable as one.
Overrides:
Creates event data from the cached and current paragraph flow directions.
public StylePropertyChangedEventArgs<FlowDirection?> GetEventArgs()
StylePropertyChangedEventArgs<FlowDirection?>
The cached and current direction values.
Raises the FlowDirectionChanged event.
protected virtual void OnFlowDirectionChanged(StylePropertyChangedEventArgs<FlowDirection?> e)
The cached and newly observed flow-direction values.
Attempts to convert a command parameter to a flow direction.
public static bool TryConvertCommandParameter(object commandParameter, out FlowDirection flowDirection)
A defined FlowDirection value or a string accepted by the enum parser.
flowDirectionFlowDirectionReceives the parsed direction, or the enum's default value when conversion fails.
Returns:Reads the current paragraph direction and raises an event when the cached value is null or differs. An unset default remains null, so repeated style updates can raise repeated events.
protected override void UpdateSpanStyle()
Overrides:
Events
Occurs when the command reads the current paragraph flow direction and its cached value is null or differs. An unset default remains null, so repeated style updates can raise repeated events.
public event EventHandler<StylePropertyChangedEventArgs<FlowDirection?>> FlowDirectionChanged