ClassChangeTextAlignmentCommand
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
ChangeTextAlignmentCommand(RadRichTextBox)
Declaration
public ChangeTextAlignmentCommand(RadRichTextBox radRichTextBox)
Parameters
radRichTextBox
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 text alignment change command.
Declaration
public StylePropertyChangedEventArgs<RadTextAlignment?> GetEventArgs()
Returns
StylePropertyChangedEventArgs<RadTextAlignment?>
An instance of EventArgs that contains the event data for the text alignment change event.
OnTextAlignmentChanged(StylePropertyChangedEventArgs<RadTextAlignment?>)
Declaration
protected virtual void OnTextAlignmentChanged(StylePropertyChangedEventArgs<RadTextAlignment?> e)
Parameters
e
TryConvertCommandParameter(object, out RadTextAlignment)
Attempts to convert the specified command parameter to a RadTextAlignment value.
Declaration
public static bool TryConvertCommandParameter(object commandParameter, out RadTextAlignment textAlignment)
Parameters
commandParameter
The command parameter to convert.
textAlignment
When 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.
UpdateSpanStyle()
Declaration
protected override void UpdateSpanStyle()
Overrides
Events
TextAlignmentChanged
Declaration
public event EventHandler<StylePropertyChangedEventArgs<RadTextAlignment?>> TextAlignmentChanged
Event Value
EventHandler<StylePropertyChangedEventArgs<RadTextAlignment?>>