Class
ChangeTextAlignmentCommand

Definition

Namespace:Telerik.WinForms.Documents.RichTextBoxCommands

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

cs-api-definition
public class ChangeTextAlignmentCommand : RichTextBoxCommandBase, ICommand

Inheritance: objectRichTextBoxCommandBaseChangeTextAlignmentCommand

Implements: ICommand

Inherited Members RichTextBoxCommandBase.CanExecute(object)RichTextBoxCommandBase.CanExecuteOverride(object)RichTextBoxCommandBase.Execute()RichTextBoxCommandBase.Execute(object)RichTextBoxCommandBase.GetSelectedInlineOrSelectCurrent()RichTextBoxCommandBase.Execute(object, bool)RichTextBoxCommandBase.UpdateSectionStyle()RichTextBoxCommandBase.GetCurrentParagraphStyle()RichTextBoxCommandBase.GetCurrentSpanStyle()RichTextBoxCommandBase.GetCurrentSectionStyle()RichTextBoxCommandBase.OnCanExecuteChanged()RichTextBoxCommandBase.AssociatedRichTextBoxRichTextBoxCommandBase.CanExecuteInReadOnlyModeRichTextBoxCommandBase.CanExecuteInReadOnlyRangeRichTextBoxCommandBase.IsDeletingCommandRichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocumentRichTextBoxCommandBase.ShouldFocusCaretAfterExecuteRichTextBoxCommandBase.SupportedTargetsRichTextBoxCommandBase.EnabledRichTextBoxCommandBase.CanExecuteChanged

Constructors

ChangeTextAlignmentCommand(RadRichTextBox)

Declaration

cs-api-definition
public ChangeTextAlignmentCommand(RadRichTextBox radRichTextBox)

Parameters

radRichTextBox

RadRichTextBox

Methods

ExecuteOverride(object)

Performs the execute action specific to the command.

Declaration

cs-api-definition
protected override void ExecuteOverride(object parameter)

Parameters

parameter

object

The command parameter.

Overrides RichTextBoxCommandBase.ExecuteOverride(object)

GetEventArgs()

Declaration

cs-api-definition
public StylePropertyChangedEventArgs<RadTextAlignment?> GetEventArgs()

Returns

StylePropertyChangedEventArgs<RadTextAlignment?>

OnTextAlignmentChanged(StylePropertyChangedEventArgs<RadTextAlignment?>)

Declaration

cs-api-definition
protected virtual void OnTextAlignmentChanged(StylePropertyChangedEventArgs<RadTextAlignment?> e)

Parameters

e

StylePropertyChangedEventArgs<RadTextAlignment?>

TryConvertCommandParameter(object, out RadTextAlignment)

Declaration

cs-api-definition
public static bool TryConvertCommandParameter(object commandParameter, out RadTextAlignment textAlignment)

Parameters

commandParameter

object

textAlignment

RadTextAlignment

Returns

bool

UpdateSpanStyle()

Declaration

cs-api-definition
protected override void UpdateSpanStyle()

Overrides RichTextBoxCommandBase.UpdateSpanStyle()

Events

TextAlignmentChanged

Declaration

cs-api-definition
public event EventHandler<StylePropertyChangedEventArgs<RadTextAlignment?>> TextAlignmentChanged

Event Value

EventHandler<StylePropertyChangedEventArgs<RadTextAlignment?>>