New to Telerik UI for WPFStart a free 30-day trial

Represents a command that aligns the content within a table cell in a RichTextBox.

Definition

Constructors

C#
public TableCellContentAlignmentCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

Properties

Gets a value indicating whether command must be enabled when there is selection in table. Default implementation returns false.

C#
protected override bool IsTableSelectionEnabledCommand { get; }
Property Value:

true if the command must be enabled; otherwise, false.

Overrides: TableContextCommandBase.IsTableSelectionEnabledCommand

Methods

Performs the execute action specific to the command.

C#
protected override void ExecuteOverride(object parameter)
Parameters:parameterobject

The command parameter.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)

Retrieves the event arguments associated with the execution of the TableCellContentAlignmentCommand.

C#
public StylePropertyChangedEventArgs<TableCellContentAlignmentCommandParameter> GetEventArgs()
Returns:

StylePropertyChangedEventArgs<TableCellContentAlignmentCommandParameter>

An instance of EventArgs containing the relevant information about the command execution.

C#
protected virtual void OnCellContentAlignmentChanged(StylePropertyChangedEventArgs<TableCellContentAlignmentCommandParameter> e)
Parameters:eStylePropertyChangedEventArgs<TableCellContentAlignmentCommandParameter>

Attempts to convert the specified command parameter into text and vertical alignment values.

C#
public static bool TryConvertCommandParameter(object commandParameter, out RadTextAlignment textAlignment, out RadVerticalAlignment verticalAlignment)
Parameters:commandParameterobject

The object representing the command parameter to convert.

textAlignmentRadTextAlignment

The output parameter that will hold the horizontal text alignment if conversion is successful.

verticalAlignmentRadVerticalAlignment

The output parameter that will hold the vertical text alignment if conversion is successful.

Returns:

bool

True if the conversion was successful; otherwise, false.

C#
protected override void UpdateSpanStyle()

Overrides: RichTextBoxCommandBase.UpdateSpanStyle()

Events

C#
public event EventHandler<StylePropertyChangedEventArgs<TableCellContentAlignmentCommandParameter>> CellContentAlignmentChanged