New to Telerik UI for WinForms? Start a free 30-day trial

Applies an underline-decoration provider to the current text selection.

Definition

Constructors

Initializes the command for the specified editor.

C#
public ChangeUnderlineDecorationCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

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.

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

The provider, registered style key, or visual whose tag contains that key.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)

Raises UnderlineChanged with the previous and current providers.

C#
protected virtual void OnUnderlineChanged(StylePropertyChangedEventArgs<IUnderlineUIDecorationProvider> e)
Parameters:eStylePropertyChangedEventArgs<IUnderlineUIDecorationProvider>

The old and new underline-provider values.

Compares the current span style with the last observed underline provider and raises UnderlineChanged when it differs.

C#
protected override void UpdateSpanStyle()

Overrides: RichTextBoxCommandBase.UpdateSpanStyle()

Events

Occurs when the current span style's underline-decoration provider changes.

C#
public event EventHandler<StylePropertyChangedEventArgs<IUnderlineUIDecorationProvider>> UnderlineChanged