Represents a command to change the text alignment within a RichTextBox.
Definition
Namespace:Telerik.Windows.Documents.RichTextBoxCommands
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class ChangeTextAlignmentCommand : RichTextBoxCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseChangeTextAlignmentCommand
Implements:
Inherited Members
Constructors
public ChangeTextAlignmentCommand(RadRichTextBox radRichTextBox)
Methods
Performs the execute action specific to the command.
protected override void ExecuteOverride(object parameter)
The command parameter.
Overrides:
Retrieves the event arguments associated with the text alignment change command.
public StylePropertyChangedEventArgs<RadTextAlignment?> GetEventArgs()
StylePropertyChangedEventArgs<RadTextAlignment?>
An instance of EventArgs that contains the event data for the text alignment change event.
protected virtual void OnTextAlignmentChanged(StylePropertyChangedEventArgs<RadTextAlignment?> e)
Attempts to convert the specified command parameter to a RadTextAlignment value.
public static bool TryConvertCommandParameter(object commandParameter, out RadTextAlignment textAlignment)
The command parameter to convert.
textAlignmentRadTextAlignmentWhen this method returns, contains the converted RadTextAlignment value if the conversion succeeded; otherwise, the default value of RadTextAlignment.
Returns:True if the conversion succeeded; otherwise, false.
protected override void UpdateSpanStyle()
Overrides:
Events
public event EventHandler<StylePropertyChangedEventArgs<RadTextAlignment?>> TextAlignmentChanged