Class
ChangeFontSizeCommand

Represents a command that changes the font size of the selected text in the RichTextBox.

Definition

Namespace:Telerik.Windows.Documents.RichTextBoxCommands

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

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

Inheritance: objectRichTextBoxCommandBaseChangeFontSizeCommand

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

ChangeFontSizeCommand(RadRichTextBox)

Declaration

cs-api-definition
public ChangeFontSizeCommand(RadRichTextBox editor)

Parameters

editor

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)

OnFontSizeChanged(StylePropertyChangedEventArgs<double>)

Declaration

cs-api-definition
protected virtual void OnFontSizeChanged(StylePropertyChangedEventArgs<double> e)

Parameters

e

StylePropertyChangedEventArgs<double>

UpdateSpanStyle()

Declaration

cs-api-definition
protected override void UpdateSpanStyle()

Overrides RichTextBoxCommandBase.UpdateSpanStyle()

Events

FontSizeChanged

Declaration

cs-api-definition
public event EventHandler<StylePropertyChangedEventArgs<double>> FontSizeChanged

Event Value

EventHandler<StylePropertyChangedEventArgs<double>>