ClassStyleFormattingPropertiesDialogContext
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:
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
public StyleFormattingPropertiesDialogContext(string dialogTitle, ListStyle realListStyle, RadRichTextBox owner)
Parameters
dialogTitle
The dialog title.
realListStyle
The real list style.
owner
The owner.
StyleFormattingPropertiesDialogContext(string, RadRichTextBox)
Initializes a new instance of the StyleFormattingPropertiesDialogContext class. Use it for creation of new style.
Declaration
public StyleFormattingPropertiesDialogContext(string dialogTitle, RadRichTextBox owner)
Parameters
dialogTitle
The dialog title.
owner
The owner.
StyleFormattingPropertiesDialogContext(string, StyleDefinition, RadRichTextBox)
Initializes a new instance of the StyleFormattingPropertiesDialogContext class. Use it for editing of style definition.
Declaration
public StyleFormattingPropertiesDialogContext(string dialogTitle, StyleDefinition realStyleDefinition, RadRichTextBox owner)
Parameters
dialogTitle
The dialog title.
realStyleDefinition
The real style definition.
owner
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
public StyleFormattingPropertiesDialogContext(string dialogTitle, StyleType styleType, RadRichTextBox owner)
Parameters
dialogTitle
The dialog title.
styleType
Type of the style.
owner
The owner.
Properties
DialogTitle
Gets or sets the title of the Style Formatting Properties dialog.
Declaration
public string DialogTitle { get; }
Property Value
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.
Owner
Gets the owner of the Style Formatting Properties Dialog Context.
RealListStyle
Gets the real list style associated with the dialog context for style formatting properties.
RealStyleDefinition
Represents the real styling definition in the context of the Style Formatting Properties Dialog.
Declaration
public StyleDefinition RealStyleDefinition { get; }
Property Value
StyleCollection
Represents a collection of style formatting properties that can be used in the Style Formatting Properties Dialog context.
Declaration
public StyleCollection StyleCollection { get; }
Property Value
Methods
AddListStyle(ListStyle)
Adds a new list style to the style formatting properties dialog context.
Declaration
public virtual void AddListStyle(ListStyle listStyle)
Parameters
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
public virtual void AddStyleDefinition(StyleDefinition style)
Parameters
style
The style definition to be added.
EditListStyle(ListStyle)
Edits the specified list style in the context of the Style Formatting Properties dialog.
Declaration
public virtual void EditListStyle(ListStyle listStyle)
Parameters
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
public virtual void EditStyleDefinition(StyleDefinition style)
Parameters
style
The style definition to be edited.
GetCharacterStyle()
Retrieves the character style associated with the current context.
Declaration
public virtual StyleDefinition GetCharacterStyle()
Returns
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
public virtual StyleDefinition GetLinkedStyle()
Returns
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
public virtual ListStyle GetListStyle()
Returns
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
public virtual StyleDefinition GetParagraphStyle()
Returns
An object of type StyleDefinition representing the current paragraph style.
GetShowInsertSymbolDialogAction()
Retrieves the action to show the insert symbol dialog.
Declaration
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
public virtual StyleDefinition GetStyle(StyleType styleType)
Parameters
styleType
The type of style to retrieve.
Returns
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
public virtual StyleDefinition GetTableStyle()
Returns
The current table style as an object of type T.