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.
Inheritance
Namespace: Telerik.Windows.Documents.UI.Extensibility
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class StyleFormattingPropertiesDialogContext : Object
Constructors
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
System.String
dialogTitle
The dialog title. |
RadRichTextBox
owner
The owner. |
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
System.String
dialogTitle
The dialog title. |
ListStyle
realListStyle
The real list style. |
RadRichTextBox
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
System.String
dialogTitle
The dialog title. |
StyleDefinition
realStyleDefinition
The real style definition. |
RadRichTextBox
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
System.String
dialogTitle
The dialog title. |
StyleType
styleType
Type of the style. |
RadRichTextBox
owner
The owner. |
Properties
DialogTitle
Gets or sets the title of the Style Formatting Properties dialog.
Declaration
public string DialogTitle { get; }
Property Value
System.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
public RadDocument Document { get; }
Property Value
RadDocument
|
Owner
Gets the owner of the Style Formatting Properties Dialog Context.
Declaration
public RadRichTextBox Owner { get; }
Property Value
RadRichTextBox
|
RealListStyle
Gets the real list style associated with the dialog context for style formatting properties.
Declaration
public ListStyle RealListStyle { get; }
Property Value
ListStyle
|
RealStyleDefinition
Represents the real styling definition in the context of the Style Formatting Properties Dialog.
Declaration
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
public StyleCollection StyleCollection { get; }
Property Value
StyleCollection
|
StyleType
Represents the type of style used in the Style Formatting Properties dialog context.
Declaration
public StyleType StyleType { get; }
Property Value
StyleType
|
Methods
AddListStyle(ListStyle)
Adds a new list style to the style formatting properties dialog context.
Declaration
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
public virtual void AddStyleDefinition(StyleDefinition style)
Parameters
StyleDefinition
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
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
StyleDefinition
style
The style definition to be edited. |
GetCharacterStyle()
Retrieves the character style associated with the current context.
Declaration
public virtual StyleDefinition GetCharacterStyle()
Returns
StyleDefinition
A StyleDefinition object that represents the character style, or |
GetLinkedStyle()
Retrieves the linked style associated with the current context.
Declaration
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
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
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
public virtual Action<Action<char, FontFamily>, FontFamily, RadRichTextBox> GetShowInsertSymbolDialogAction()
Returns
System.Action<System.Action<System.Char, System.Windows.Media.FontFamily>, System.Windows.Media.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
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
public virtual StyleDefinition GetTableStyle()
Returns
StyleDefinition
The current table style as an object of type |