Applies a positive font size to the current text selection and reports changes to the current span style.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class ChangeFontSizeCommand : RichTextBoxCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseChangeFontSizeCommand
Implements:
Inherited Members
Constructors
Initializes the command for the specified editor.
public ChangeFontSizeCommand(RadRichTextBox editor)
The rich text box whose text formatting this command changes.
Methods
Raises the FontSizeChanged event.
protected virtual void OnFontSizeChanged(StylePropertyChangedEventArgs<double> e)
The cached previous and newly observed font-size values.
Raises FontSizeChanged when the observed current span font size differs from the cached value; an unset default is reported as MaxValue.
protected override void UpdateSpanStyle()
Overrides:
Events
Occurs when the command detects a different font size in the current span style. An unset default is reported as MaxValue; the first event's old value can be the cache's initial zero.
public event EventHandler<StylePropertyChangedEventArgs<double>> FontSizeChanged