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 jQuery UI for Angular UI for React UI for Vue 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 Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class Style

Establishes functionality to share style properties between different document elements.

Inheritance
System.Object
Style
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Windows.Documents.Flow.Model.Styles
Assembly: Telerik.Windows.Documents.Flow.dll

Syntax

public class Style

Constructors

Style(String, StyleType)

Initializes a new instance of the Style class with corresponding style ID and style type.

Declaration
public Style(string id, StyleType type)
Parameters
System.String id

The ID.

StyleType type

The type.

Properties

BasedOnStyleId

Gets or sets the name of the based on style.

Declaration
public string BasedOnStyleId { get; set; }
Property Value
System.String

The name of the based on.

CharacterProperties

Gets the character properties.

Declaration
public CharacterProperties CharacterProperties { get; }
Property Value
CharacterProperties

The character properties.

Document

Gets the document to which the current style belongs to.

Declaration
public RadFlowDocument Document { get; }
Property Value
RadFlowDocument

The document.

Id

Gets or sets the ID of the style.

Declaration
public string Id { get; set; }
Property Value
System.String

The ID.

IsCustom

Gets or sets a value indicating if the current style is custom. The default value is

false
.

Declaration
public bool IsCustom { get; set; }
Property Value
System.Boolean

IsDefault

Gets or sets a value indicating if the current style is default.

Declaration
public bool IsDefault { get; set; }
Property Value
System.Boolean

The is default.

IsPrimary

Gets or sets value indicating whether the style should be visible in any styles gallery.

Declaration
public bool IsPrimary { get; set; }
Property Value
System.Boolean

LinkedStyleId

Gets or sets the linked style ID.

This property can be set to Paragraph or Character style only. Paragraph style can be linked only to Character style and vice versa.

Declaration
public string LinkedStyleId { get; set; }
Property Value
System.String

The linked style ID.

Name

Gets or sets the name which will represent the style in any UI. If this property is not set then the id of the style is returned.

Declaration
public string Name { get; set; }
Property Value
System.String

The name.

NextStyleId

Gets or sets the next style id.

Declaration
public string NextStyleId { get; set; }
Property Value
System.String

The next style id.

ParagraphProperties

Gets the paragraph properties.

Declaration
public ParagraphProperties ParagraphProperties { get; }
Property Value
ParagraphProperties

The paragraph properties.

StyleType

Gets the type of the style.

Declaration
public StyleType StyleType { get; }
Property Value
StyleType

The type of the style.

TableCellProperties

Gets the table cell properties.

Declaration
public TableCellProperties TableCellProperties { get; }
Property Value
TableCellProperties

The table cell properties.

TableProperties

Gets the table properties.

Declaration
public TableProperties TableProperties { get; }
Property Value
TableProperties

The table properties.

TableRowProperties

Gets the table row properties.

Declaration
public TableRowProperties TableRowProperties { get; }
Property Value
TableRowProperties

The table row properties.

UIPriority

Gets or sets the UI priority of the style.

Declaration
public int UIPriority { get; set; }
Property Value
System.Int32

The UI priority.

Methods

Clone()

Creates deep copy of this style.

Declaration
public Style Clone()
Returns
Style

The cloned style.

GetPropertyValue(IStylePropertyDefinition)

Gets the property value.

Declaration
public object GetPropertyValue(IStylePropertyDefinition stylePropertyDefinition)
Parameters
IStylePropertyDefinition stylePropertyDefinition

The style property definition.

Returns
System.Object

Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • 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.