Applies a font family 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 ChangeFontFamilyCommand : RichTextBoxCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseChangeFontFamilyCommand
Implements:
Inherited Members
Constructors
Initializes the command for the specified editor.
public ChangeFontFamilyCommand(RadRichTextBox editor)
The rich text box whose text formatting this command changes.
Properties
Gets false so command execution does not explicitly return focus to the active editor.
protected override bool ShouldFocusCaretAfterExecute { get; }
Overrides:
Methods
Applies a font family supplied as a FontFamily or family-name string; legacy callers may supply a FrameworkElement whose tag contains the family name.
protected override void ExecuteOverride(object parameter)
The font family or a value from which the font family can be obtained.
Overrides:
Raises the FontFamilyChanged event.
protected virtual void OnFontFamilyChanged(StylePropertyChangedEventArgs<FontFamily> e)
The cached previous and newly observed font-family values.
Raises FontFamilyChanged when the observed current span font family differs from the cached value; an unset default is reported as null.
protected override void UpdateSpanStyle()
Overrides: