skip navigation
  • Product Bundles

    DevCraft

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

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    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
    • Roadmap
    • Release History
  • 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 DocumentElementPropertiesBase

Base class for formatting properties attached to document elements, providing style inheritance, local value management, and property enumeration for elements and styles.

Inheritance
System.Object
DocumentElementPropertiesBase
CharacterProperties
DocumentProperties
ParagraphProperties
SectionProperties
TableCellProperties
TableProperties
TableRowProperties
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 abstract class DocumentElementPropertiesBase : IElementWithStyle

Fields

StyleIdPropertyDefinition

Gets the style id property definition.

Declaration
protected static readonly StylePropertyDefinition<string> StyleIdPropertyDefinition
Field Value
StylePropertyDefinition<System.String>

Properties

StyleId

Gets or sets the identifier of the style applied to this element, linking it to a named style in the document's StyleRepository.

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

The name of the style.

Implements
IElementWithStyle.StyleId

StyleIdProperty

Gets the style id property.

Declaration
protected IStyleProperty StyleIdProperty { get; }
Property Value
IStyleProperty

The style id property.

StyleProperties

Gets all style properties defined for this element, including the StyleId property.

Declaration
public IEnumerable<IStyleProperty> StyleProperties { get; }
Property Value
System.Collections.Generic.IEnumerable<IStyleProperty>

The style properties.

Methods

ClearLocalValues()

Removes all locally set property values, reverting properties to inherited or default values.

Declaration
public void ClearLocalValues()

CopyPropertiesFrom(DocumentElementPropertiesBase)

Copies all local property values from another properties instance of the same type.

Declaration
public virtual void CopyPropertiesFrom(DocumentElementPropertiesBase fromProperties)
Parameters
DocumentElementPropertiesBase fromProperties

From properties.

EnumerateStyleProperties()

Enumerates the style properties.

Declaration
protected abstract IEnumerable<IStyleProperty> EnumerateStyleProperties()
Returns
System.Collections.Generic.IEnumerable<IStyleProperty>

The style properties.

GetStyleProperty(String)

Retrieves the style property matching the specified name, or null if not found.

Declaration
public IStyleProperty GetStyleProperty(string propertyName)
Parameters
System.String propertyName

Name of the property.

Returns
IStyleProperty

GetStyleProperty(IStylePropertyDefinition)

Retrieves the style property matching the specified definition, or null if not found.

Declaration
public IStyleProperty GetStyleProperty(IStylePropertyDefinition propertyDefinition)
Parameters
IStylePropertyDefinition propertyDefinition

The property definition.

Returns
IStyleProperty

GetStylePropertyOverride(IStylePropertyDefinition)

Gets specific style property or null.

Declaration
protected abstract IStyleProperty GetStylePropertyOverride(IStylePropertyDefinition propertyDefinition)
Parameters
IStylePropertyDefinition propertyDefinition

The property definition.

Returns
IStyleProperty

HasLocalValues()

Determines whether any properties have locally set values rather than relying solely on inheritance or defaults.

Declaration
public bool HasLocalValues()
Returns
System.Boolean

True if there are local property values.

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.