Supplies the editor, default style, and apply callback used by a font-properties dialog.
Definition
Namespace:Telerik.WinForms.Documents.UI.Extensibility
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class FontPropertiesDialogContext
Inheritance: objectFontPropertiesDialogContext
Constructors
Initializes the context from the editor and the style used by Reset All.
public FontPropertiesDialogContext(Action<StyleDefinition> applyStyle, StyleDefinition defaultStyle, RadRichTextBox owner)
Applies the style selected in the dialog to the editor.
defaultStyleStyleDefinitionThe style restored by the dialog's Reset All action.
ownerRadRichTextBoxThe editor whose current style is displayed and updated.
Properties
A callback that is used to apply the style filled in the UI.
public Action<StyleDefinition> ApplyStyle { get; }
The apply style.
Gets the current editing style. Provided for backward compatibility.
public StyleDefinition CurrentEditingStyle { get; }
The current editing style.
Gets or sets the default style which will be used to fill in the dialog on Reset All
public StyleDefinition DefaultStyle { get; }
The default style.
The owner RadRichTextBox used to set the owner of the RadWindow and to extract the current style.
public RadRichTextBox Owner { get; }
The owner.