Represents a command that aligns the content within a table cell in a RichTextBox.
Definition
Namespace:Telerik.Windows.Documents.RichTextBoxCommands
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class TableCellContentAlignmentCommand : TableContextCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseTableContextCommandBaseTableCellContentAlignmentCommand
Implements:
Inherited Members
Constructors
Properties
Gets a value indicating whether command must be enabled when there is selection in table. Default implementation returns false.
protected override bool IsTableSelectionEnabledCommand { get; }
true if the command must be enabled; otherwise, false.
Overrides:
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 execution of the TableCellContentAlignmentCommand.
public StylePropertyChangedEventArgs<TableCellContentAlignmentCommandParameter> GetEventArgs()
StylePropertyChangedEventArgs<TableCellContentAlignmentCommandParameter>
An instance of EventArgs containing the relevant information about the command execution.
protected virtual void OnCellContentAlignmentChanged(StylePropertyChangedEventArgs<TableCellContentAlignmentCommandParameter> e)
Attempts to convert the specified command parameter into text and vertical alignment values.
public static bool TryConvertCommandParameter(object commandParameter, out RadTextAlignment textAlignment, out RadVerticalAlignment verticalAlignment)
The object representing the command parameter to convert.
textAlignmentRadTextAlignmentThe output parameter that will hold the horizontal text alignment if conversion is successful.
verticalAlignmentRadVerticalAlignmentThe output parameter that will hold the vertical text alignment if conversion is successful.
Returns:True if the conversion was successful; otherwise, false.
protected override void UpdateSpanStyle()
Overrides:
Events
public event EventHandler<StylePropertyChangedEventArgs<TableCellContentAlignmentCommandParameter>> CellContentAlignmentChanged