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

Supplies the paragraph style, apply and tab-stop callbacks, and optional owner for a paragraph properties dialog.

Definition

Namespace:Telerik.WinForms.Documents.UI.Extensibility

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class ParagraphPropertiesDialogContext

Inheritance: objectParagraphPropertiesDialogContext

Constructors

Initializes the paragraph style, callbacks, and rich text box that owns the dialog.

C#
public ParagraphPropertiesDialogContext(StyleDefinition styleInfo, Action<StyleDefinition> applyPropCallback, Action showTabStopsPropertiesDialogCallback, RadRichTextBox owner)
Parameters:styleInfoStyleDefinition

The paragraph style used to populate the dialog.

applyPropCallbackAction<StyleDefinition>

Applies the paragraph style produced by the dialog.

showTabStopsPropertiesDialogCallbackAction

Opens the tab-stop properties dialog.

ownerRadRichTextBox

The rich text box that owns the dialog.

Initializes the paragraph style and callbacks without an explicit dialog owner.

C#
public ParagraphPropertiesDialogContext(StyleDefinition styleInfo, Action<StyleDefinition> applyPropCallback, Action showTabStopsPropertiesDialogCallback)
Parameters:styleInfoStyleDefinition

The paragraph style used to populate the dialog.

applyPropCallbackAction<StyleDefinition>

Applies the paragraph style produced by the dialog.

showTabStopsPropertiesDialogCallbackAction

Opens the tab-stop properties dialog.

Properties

Gets the callback that applies the paragraph style returned when the dialog is confirmed.

C#
public Action<StyleDefinition> ApplyPropCallback { get; }

Gets the rich text box that owns the dialog, when provided by the WPF host.

C#
public RadRichTextBox Owner { get; }

Gets the callback used to open the tab-stop properties dialog.

C#
public Action ShowTabStopsPropertiesDialogCallback { get; }

Gets the paragraph style used to initialize the dialog's controls.

C#
public StyleDefinition StyleInfo { get; }