Class ChangeTextAlignmentCommand
Represents a command to change the text alignment within a RichTextBox.
Inherited Members
Namespace: Telerik.Windows.Documents.RichTextBoxCommands
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class ChangeTextAlignmentCommand : RichTextBoxCommandBase, ICommand
Constructors
ChangeTextAlignmentCommand(RadRichTextBox)
Declaration
public ChangeTextAlignmentCommand(RadRichTextBox radRichTextBox)
Parameters
RadRichTextBox
radRichTextBox
|
Methods
ExecuteOverride(Object)
Declaration
protected override void ExecuteOverride(object parameter)
Parameters
System.Object
parameter
|
Overrides
GetEventArgs()
Retrieves the event arguments associated with the text alignment change command.
Declaration
public StylePropertyChangedEventArgs<Nullable<RadTextAlignment>> GetEventArgs()
Returns
StylePropertyChangedEventArgs<System.Nullable<RadTextAlignment>>
An instance of System.EventArgs that contains the event data for the text alignment change event. |
OnTextAlignmentChanged(StylePropertyChangedEventArgs<Nullable<RadTextAlignment>>)
Declaration
protected virtual void OnTextAlignmentChanged(StylePropertyChangedEventArgs<Nullable<RadTextAlignment>> e)
Parameters
StylePropertyChangedEventArgs<System.Nullable<RadTextAlignment>>
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
System.Object
commandParameter
The command parameter to convert. |
RadTextAlignment
textAlignment
When this method returns, contains the converted RadTextAlignment value if the conversion succeeded; otherwise, the default value of RadTextAlignment. |
Returns
System.Boolean
True if the conversion succeeded; otherwise, false. |
UpdateSpanStyle()
Declaration
protected override void UpdateSpanStyle()
Overrides
Events
TextAlignmentChanged
Declaration
public event EventHandler<StylePropertyChangedEventArgs<Nullable<RadTextAlignment>>> TextAlignmentChanged
Event Type
System.EventHandler<StylePropertyChangedEventArgs<System.Nullable<RadTextAlignment>>>
|