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