ClassTableCellContentAlignmentCommand
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
TableCellContentAlignmentCommand(RadRichTextBox)
Declaration
public TableCellContentAlignmentCommand(RadRichTextBox editor)
Parameters
editor
Properties
IsTableSelectionEnabledCommand
Gets a value indicating whether command must be enabled when there is selection in table. Default implementation returns false.
Declaration
protected override bool IsTableSelectionEnabledCommand { get; }
Property Value
true if the command must be enabled; otherwise, false.
Overrides
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 execution of the TableCellContentAlignmentCommand.
Declaration
public StylePropertyChangedEventArgs<TableCellContentAlignmentCommandParameter> GetEventArgs()
Returns
StylePropertyChangedEventArgs<TableCellContentAlignmentCommandParameter>
An instance of EventArgs containing the relevant information about the command execution.
OnCellContentAlignmentChanged(StylePropertyChangedEventArgs<TableCellContentAlignmentCommandParameter>)
Declaration
protected virtual void OnCellContentAlignmentChanged(StylePropertyChangedEventArgs<TableCellContentAlignmentCommandParameter> e)
Parameters
e
StylePropertyChangedEventArgs<TableCellContentAlignmentCommandParameter>
TryConvertCommandParameter(object, out RadTextAlignment, out RadVerticalAlignment)
Attempts to convert the specified command parameter into text and vertical alignment values.
Declaration
public static bool TryConvertCommandParameter(object commandParameter, out RadTextAlignment textAlignment, out RadVerticalAlignment verticalAlignment)
Parameters
commandParameter
The object representing the command parameter to convert.
textAlignment
The output parameter that will hold the horizontal text alignment if conversion is successful.
verticalAlignment
The output parameter that will hold the vertical text alignment if conversion is successful.
Returns
True if the conversion was successful; otherwise, false.
UpdateSpanStyle()
Declaration
protected override void UpdateSpanStyle()
Overrides
Events
CellContentAlignmentChanged
Declaration
public event EventHandler<StylePropertyChangedEventArgs<TableCellContentAlignmentCommandParameter>> CellContentAlignmentChanged
Event Value
EventHandler<StylePropertyChangedEventArgs<TableCellContentAlignmentCommandParameter>>