ClassChangeParagraphFlowDirectionCommand
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
ChangeParagraphFlowDirectionCommand(RadRichTextBox)
Declaration
public ChangeParagraphFlowDirectionCommand(RadRichTextBox editor)
Parameters
editor
Methods
ExecuteOverride(object)
Performs the execute action specific to the command.
Declaration
protected override void ExecuteOverride(object parameter)
Parameters
parameter
The command parameter.
Overrides
GetEventArgs()
Retrieves the event arguments associated with the ChangeParagraphFlowDirectionCommand.
Declaration
public StylePropertyChangedEventArgs<FlowDirection?> GetEventArgs()
Returns
StylePropertyChangedEventArgs<FlowDirection?>
An instance of EventArgs that contains the event data related to the command.
OnFlowDirectionChanged(StylePropertyChangedEventArgs<FlowDirection?>)
Declaration
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
public static bool TryConvertCommandParameter(object commandParameter, out FlowDirection flowDirection)
Parameters
commandParameter
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
Returns true if the conversion was successful; otherwise, false.
UpdateSpanStyle()
Declaration
protected override void UpdateSpanStyle()
Overrides
Events
FlowDirectionChanged
Declaration
public event EventHandler<StylePropertyChangedEventArgs<FlowDirection?>> FlowDirectionChanged
Event Value
EventHandler<StylePropertyChangedEventArgs<FlowDirection?>>