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

Represents the context for the Style Formatting Properties dialog in the Telerik UI framework. This class provides the necessary information and properties needed to manage and display the style formatting options within the dialog.

Definition

Namespace:Telerik.Windows.Documents.UI.Extensibility

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class StyleFormattingPropertiesDialogContext

Inheritance: objectStyleFormattingPropertiesDialogContext

Constructors

Initializes a new instance of the StyleFormattingPropertiesDialogContext class. Use it for editing of list style.

C#
public StyleFormattingPropertiesDialogContext(string dialogTitle, ListStyle realListStyle, RadRichTextBox owner)
Parameters:dialogTitlestring

The dialog title.

realListStyleListStyle

The real list style.

ownerRadRichTextBox

The owner.

Initializes a new instance of the StyleFormattingPropertiesDialogContext class. Use it for creation of new style.

C#
public StyleFormattingPropertiesDialogContext(string dialogTitle, RadRichTextBox owner)
Parameters:dialogTitlestring

The dialog title.

ownerRadRichTextBox

The owner.

Initializes a new instance of the StyleFormattingPropertiesDialogContext class. Use it for editing of style definition.

C#
public StyleFormattingPropertiesDialogContext(string dialogTitle, StyleDefinition realStyleDefinition, RadRichTextBox owner)
Parameters:dialogTitlestring

The dialog title.

realStyleDefinitionStyleDefinition

The real style definition.

ownerRadRichTextBox

The owner.

Initializes a new instance of the StyleFormattingPropertiesDialogContext class. Use it for creation of new style with specified type.

C#
public StyleFormattingPropertiesDialogContext(string dialogTitle, StyleType styleType, RadRichTextBox owner)
Parameters:dialogTitlestring

The dialog title.

styleTypeStyleType

Type of the style.

ownerRadRichTextBox

The owner.

Properties

Gets or sets the title of the Style Formatting Properties dialog.

C#
public string DialogTitle { get; }
Property Value:

A string representing the title of the dialog.

Represents the context of the style formatting properties dialog for documents in the Telerik UI framework.

C#
public RadDocument Document { get; }

Gets the owner of the Style Formatting Properties Dialog Context.

C#
public RadRichTextBox Owner { get; }

Gets the real list style associated with the dialog context for style formatting properties.

C#
public ListStyle RealListStyle { get; }

Represents the real styling definition in the context of the Style Formatting Properties Dialog.

C#
public StyleDefinition RealStyleDefinition { get; }

Represents a collection of style formatting properties that can be used in the Style Formatting Properties Dialog context.

C#
public StyleCollection StyleCollection { get; }

Represents the type of style used in the Style Formatting Properties dialog context.

C#
public StyleType StyleType { get; }

Methods

Adds a new list style to the style formatting properties dialog context.

C#
public virtual void AddListStyle(ListStyle listStyle)
Parameters:listStyleListStyle

The list style to be added to the dialog context.

Adds a new style definition to the style formatting properties dialog context.

C#
public virtual void AddStyleDefinition(StyleDefinition style)
Parameters:styleStyleDefinition

The style definition to be added.

Edits the specified list style in the context of the Style Formatting Properties dialog.

C#
public virtual void EditListStyle(ListStyle listStyle)
Parameters:listStyleListStyle

The list style to be edited.

Edits the style definition for the specified style in the Style Formatting Properties dialog context.

C#
public virtual void EditStyleDefinition(StyleDefinition style)
Parameters:styleStyleDefinition

The style definition to be edited.

Retrieves the character style associated with the current context.

C#
public virtual StyleDefinition GetCharacterStyle()
Returns:

StyleDefinition

A StyleDefinition object that represents the character style, or null if no style is associated.

Retrieves the linked style associated with the current context.

C#
public virtual StyleDefinition GetLinkedStyle()
Returns:

StyleDefinition

A StyleDefinition object that represents the linked style, or null if no linked style is found.

Retrieves the list style associated with the current context of the Style Formatting Properties dialog.

C#
public virtual ListStyle GetListStyle()
Returns:

ListStyle

The list style object representing the formatting properties for lists in the dialog context.

Retrieves the current paragraph style from the Style Formatting Properties dialog context.

C#
public virtual StyleDefinition GetParagraphStyle()
Returns:

StyleDefinition

An object of type StyleDefinition representing the current paragraph style.

Retrieves the action to show the insert symbol dialog.

C#
public virtual Action<Action<char, FontFamily>, FontFamily, RadRichTextBox> GetShowInsertSymbolDialogAction()
Returns:

Action<Action<char, FontFamily>, FontFamily, RadRichTextBox>

A delegate representing the action to display the insert symbol dialog.

Retrieves the style associated with the specified style type from the style formatting properties dialog context.

C#
public virtual StyleDefinition GetStyle(StyleType styleType)
Parameters:styleTypeStyleType

The type of style to retrieve.

Returns:

StyleDefinition

The style object corresponding to the specified style type, or null if no style is found.

Retrieves the current table style in the style formatting properties dialog context.

C#
public virtual StyleDefinition GetTableStyle()
Returns:

StyleDefinition

The current table style as an object of type T.