New to Telerik UI for WPFStart a free 30-day trial

Represents the context for managing styles within the styles dialog.

Definition

Namespace:Telerik.Windows.Documents.UI.Extensibility

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class ManageStylesDialogContext

Inheritance: objectManageStylesDialogContext

Constructors

C#
public ManageStylesDialogContext(StyleCollection styleDefinitionCollection, Action createNewStyleDefinitionCallback, Action<StyleDefinition> editStyleDefinitionCallback, Action<StyleDefinition> deleteStyleDefinitionCallback, Action<string> changeDocumentElementStyleNameCallback, RadRichTextBox owner)
Parameters:styleDefinitionCollectionStyleCollectioncreateNewStyleDefinitionCallbackActioneditStyleDefinitionCallbackAction<StyleDefinition>deleteStyleDefinitionCallbackAction<StyleDefinition>changeDocumentElementStyleNameCallbackAction<string>ownerRadRichTextBox

Properties

Represents a callback method that is invoked to change the style name of a document element.

C#
public Action<string> ChangeDocumentElementStyleNameCallback { get; }

Creates a new style definition within the Manage Styles dialog context.

C#
public Action CreateNewStyleDefinitionCallback { get; }

Represents a callback method to delete a style definition in the Manage Styles Dialog Context.

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

Represents a callback method invoked for editing a style definition in the Manage Styles dialog context.

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

Gets or sets the owner of the Manage Styles dialog context.

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

The owner, represented as a reference to the object that owns the dialog context.

Represents a collection of style definitions used in the Manage Styles dialog context.

C#
public StyleCollection StyleDefinitionCollection { get; }