skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

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
System.Object
StyleFormattingPropertiesDialogContext
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 null if no style is associated.

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 T.

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.