Applies an underline-decoration provider to the current text selection.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class ChangeUnderlineDecorationCommand : RichTextBoxCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseChangeUnderlineDecorationCommand
Implements:
Inherited Members
Constructors
Initializes the command for the specified editor.
public ChangeUnderlineDecorationCommand(RadRichTextBox editor)
The editor whose selected text receives the underline style.
Methods
Resolves a provider, registered string key, or tagged visual to an underline style and applies it when resolved.
protected override void ExecuteOverride(object parameter)
The provider, registered style key, or visual whose tag contains that key.
Overrides:
Raises UnderlineChanged with the previous and current providers.
protected virtual void OnUnderlineChanged(StylePropertyChangedEventArgs<IUnderlineUIDecorationProvider> e)
The old and new underline-provider values.
Compares the current span style with the last observed underline provider and raises UnderlineChanged when it differs.
protected override void UpdateSpanStyle()
Overrides:
Events
Occurs when the current span style's underline-decoration provider changes.
public event EventHandler<StylePropertyChangedEventArgs<IUnderlineUIDecorationProvider>> UnderlineChanged