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

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:

C#
public class FontPropertiesDialogContext

Inheritance: objectFontPropertiesDialogContext

Constructors

Initializes the context from the editor and the style used by Reset All.

C#
public FontPropertiesDialogContext(Action<StyleDefinition> applyStyle, StyleDefinition defaultStyle, RadRichTextBox owner)
Parameters:applyStyleAction<StyleDefinition>

Applies the style selected in the dialog to the editor.

defaultStyleStyleDefinition

The style restored by the dialog's Reset All action.

ownerRadRichTextBox

The editor whose current style is displayed and updated.

Properties

A callback that is used to apply the style filled in the UI.

C#
public Action<StyleDefinition> ApplyStyle { get; }
Property Value:

The apply style.

Gets the current editing style. Provided for backward compatibility.

C#
public StyleDefinition CurrentEditingStyle { get; }
Property Value:

The current editing style.

Gets or sets the default style which will be used to fill in the dialog on Reset All

C#
public StyleDefinition DefaultStyle { get; }
Property Value:

The default style.

The owner RadRichTextBox used to set the owner of the RadWindow and to extract the current style.

C#
public RadRichTextBox Owner { get; }
Property Value:

The owner.