Class TableCellContentAlignmentCommand
Represents a command that aligns the content within a table cell in a RichTextBox.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.RichTextBoxCommands
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class TableCellContentAlignmentCommand : TableContextCommandBase, ICommand
Constructors
TableCellContentAlignmentCommand(RadRichTextBox)
Declaration
public TableCellContentAlignmentCommand(RadRichTextBox editor)
Parameters
RadRichTextBox
editor
|
Properties
IsTableSelectionEnabledCommand
Declaration
protected override bool IsTableSelectionEnabledCommand { get; }
Property Value
System.Boolean
|
Overrides
Methods
ExecuteOverride(Object)
Declaration
protected override void ExecuteOverride(object parameter)
Parameters
System.Object
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 System.EventArgs containing the relevant information about the command execution. |
OnCellContentAlignmentChanged(StylePropertyChangedEventArgs<TableCellContentAlignmentCommandParameter>)
Declaration
protected virtual void OnCellContentAlignmentChanged(StylePropertyChangedEventArgs<TableCellContentAlignmentCommandParameter> e)
Parameters
StylePropertyChangedEventArgs<TableCellContentAlignmentCommandParameter>
e
|
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
System.Object
commandParameter
The object representing the command parameter to convert. |
RadTextAlignment
textAlignment
The output parameter that will hold the horizontal text alignment if conversion is successful. |
RadVerticalAlignment
verticalAlignment
The output parameter that will hold the vertical text alignment if conversion is successful. |
Returns
System.Boolean
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 Type
System.EventHandler<StylePropertyChangedEventArgs<TableCellContentAlignmentCommandParameter>>
|