Class ChangeParagraphFlowDirectionCommand
Represents a command that changes the flow direction of a paragraph in a rich text box.
Inherited Members
Namespace: Telerik.Windows.Documents.RichTextBoxCommands
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class ChangeParagraphFlowDirectionCommand : RichTextBoxCommandBase, ICommand
Constructors
ChangeParagraphFlowDirectionCommand(RadRichTextBox)
Declaration
public ChangeParagraphFlowDirectionCommand(RadRichTextBox editor)
Parameters
RadRichTextBox
editor
|
Methods
ExecuteOverride(Object)
Declaration
protected override void ExecuteOverride(object parameter)
Parameters
System.Object
parameter
|
Overrides
GetEventArgs()
Retrieves the event arguments associated with the ChangeParagraphFlowDirectionCommand.
Declaration
public StylePropertyChangedEventArgs<Nullable<FlowDirection>> GetEventArgs()
Returns
StylePropertyChangedEventArgs<System.Nullable<System.Windows.FlowDirection>>
An instance of System.EventArgs that contains the event data related to the command. |
OnFlowDirectionChanged(StylePropertyChangedEventArgs<Nullable<FlowDirection>>)
Declaration
protected virtual void OnFlowDirectionChanged(StylePropertyChangedEventArgs<Nullable<FlowDirection>> e)
Parameters
StylePropertyChangedEventArgs<System.Nullable<System.Windows.FlowDirection>>
e
|
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
System.Object
commandParameter
The command parameter to be converted. |
System.Windows.FlowDirection
flowDirection
When this method returns, contains the FlowDirection value if the conversion succeeded; otherwise, the default value of FlowDirection. |
Returns
System.Boolean
Returns true if the conversion was successful; otherwise, false. |
UpdateSpanStyle()
Declaration
protected override void UpdateSpanStyle()
Overrides
Events
FlowDirectionChanged
Declaration
public event EventHandler<StylePropertyChangedEventArgs<Nullable<FlowDirection>>> FlowDirectionChanged
Event Type
System.EventHandler<StylePropertyChangedEventArgs<System.Nullable<System.Windows.FlowDirection>>>
|