Class
StyleFormattingPropertiesDialogContext

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:

cs-api-definition
public class StyleFormattingPropertiesDialogContext

Inheritance: objectStyleFormattingPropertiesDialogContext

Constructors

StyleFormattingPropertiesDialogContext(string, ListStyle, RadRichTextBox)

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

Declaration

cs-api-definition
public StyleFormattingPropertiesDialogContext(string dialogTitle, ListStyle realListStyle, RadRichTextBox owner)

Parameters

dialogTitle

string

The dialog title.

realListStyle

ListStyle

The real list style.

owner

RadRichTextBox

The owner.

StyleFormattingPropertiesDialogContext(string, RadRichTextBox)

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

Declaration

cs-api-definition
public StyleFormattingPropertiesDialogContext(string dialogTitle, RadRichTextBox owner)

Parameters

dialogTitle

string

The dialog title.

owner

RadRichTextBox

The owner.

StyleFormattingPropertiesDialogContext(string, StyleDefinition, RadRichTextBox)

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

Declaration

cs-api-definition
public StyleFormattingPropertiesDialogContext(string dialogTitle, StyleDefinition realStyleDefinition, RadRichTextBox owner)

Parameters

dialogTitle

string

The dialog title.

realStyleDefinition

StyleDefinition

The real style definition.

owner

RadRichTextBox

The owner.

StyleFormattingPropertiesDialogContext(string, StyleType, RadRichTextBox)

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

Declaration

cs-api-definition
public StyleFormattingPropertiesDialogContext(string dialogTitle, StyleType styleType, RadRichTextBox owner)

Parameters

dialogTitle

string

The dialog title.

styleType

StyleType

Type of the style.

owner

RadRichTextBox

The owner.

Properties

DialogTitle

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

Declaration

cs-api-definition
public string DialogTitle { get; }

Property Value

string

A string representing the title of the dialog.

Document

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

Declaration

cs-api-definition
public RadDocument Document { get; }

Property Value

RadDocument

Owner

Gets the owner of the Style Formatting Properties Dialog Context.

Declaration

cs-api-definition
public RadRichTextBox Owner { get; }

Property Value

RadRichTextBox

RealListStyle

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

Declaration

cs-api-definition
public ListStyle RealListStyle { get; }

Property Value

ListStyle

RealStyleDefinition

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

Declaration

cs-api-definition
public StyleDefinition RealStyleDefinition { get; }

Property Value

StyleDefinition

StyleCollection

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

Declaration

cs-api-definition
public StyleCollection StyleCollection { get; }

Property Value

StyleCollection

StyleType

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

Declaration

cs-api-definition
public StyleType StyleType { get; }

Property Value

StyleType

Methods

AddListStyle(ListStyle)

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

Declaration

cs-api-definition
public virtual void AddListStyle(ListStyle listStyle)

Parameters

listStyle

ListStyle

The list style to be added to the dialog context.

AddStyleDefinition(StyleDefinition)

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

Declaration

cs-api-definition
public virtual void AddStyleDefinition(StyleDefinition style)

Parameters

style

StyleDefinition

The style definition to be added.

EditListStyle(ListStyle)

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

Declaration

cs-api-definition
public virtual void EditListStyle(ListStyle listStyle)

Parameters

listStyle

ListStyle

The list style to be edited.

EditStyleDefinition(StyleDefinition)

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

Declaration

cs-api-definition
public virtual void EditStyleDefinition(StyleDefinition style)

Parameters

style

StyleDefinition

The style definition to be edited.

GetCharacterStyle()

Retrieves the character style associated with the current context.

Declaration

cs-api-definition
public virtual StyleDefinition GetCharacterStyle()

Returns

StyleDefinition

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

GetLinkedStyle()

Retrieves the linked style associated with the current context.

Declaration

cs-api-definition
public virtual StyleDefinition GetLinkedStyle()

Returns

StyleDefinition

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

GetListStyle()

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

Declaration

cs-api-definition
public virtual ListStyle GetListStyle()

Returns

ListStyle

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

GetParagraphStyle()

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

Declaration

cs-api-definition
public virtual StyleDefinition GetParagraphStyle()

Returns

StyleDefinition

An object of type StyleDefinition representing the current paragraph style.

GetShowInsertSymbolDialogAction()

Retrieves the action to show the insert symbol dialog.

Declaration

cs-api-definition
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.

GetStyle(StyleType)

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

Declaration

cs-api-definition
public virtual StyleDefinition GetStyle(StyleType styleType)

Parameters

styleType

StyleType

The type of style to retrieve.

Returns

StyleDefinition

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

GetTableStyle()

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

Declaration

cs-api-definition
public virtual StyleDefinition GetTableStyle()

Returns

StyleDefinition

The current table style as an object of type T.