New to Telerik Document ProcessingStart a free 30-day trial

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

Definition

Namespace:Telerik.Windows.Documents.Flow.Model.Styles

Assembly:Telerik.Windows.Documents.Flow.dll

Syntax:

C#
public abstract class DocumentElementPropertiesBase : IElementWithStyle

Inheritance: objectDocumentElementPropertiesBase

Derived Classes: CharacterPropertiesDocumentPropertiesParagraphPropertiesSectionPropertiesTableCellPropertiesTablePropertiesTableRowProperties...

Implements: IElementWithStyle

Fields

Gets the style id property definition.

C#
protected static readonly StylePropertyDefinition<string> StyleIdPropertyDefinition

Methods

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

C#
public void ClearLocalValues()

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

C#
public virtual void CopyPropertiesFrom(DocumentElementPropertiesBase fromProperties)
Parameters:fromPropertiesDocumentElementPropertiesBase

From properties.

Enumerates the style properties.

C#
protected abstract IEnumerable<IStyleProperty> EnumerateStyleProperties()
Returns:

IEnumerable<IStyleProperty>

The style properties.

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

C#
public IStyleProperty GetStyleProperty(IStylePropertyDefinition propertyDefinition)
Parameters:propertyDefinitionIStylePropertyDefinition

The property definition.

Returns:

IStyleProperty

Gets specific style property or null.

C#
protected abstract IStyleProperty GetStylePropertyOverride(IStylePropertyDefinition propertyDefinition)
Parameters:propertyDefinitionIStylePropertyDefinition

The property definition.

Returns:

IStyleProperty

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

C#
public bool HasLocalValues()
Returns:

bool

True if there are local property values.

Properties

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

C#
public string StyleId { get; set; }
Property Value:

The name of the style.

Implements: IElementWithStyle.StyleId

Gets the style id property.

C#
protected IStyleProperty StyleIdProperty { get; }
Property Value:

The style id property.

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

C#
public IEnumerable<IStyleProperty> StyleProperties { get; }
Property Value:

The style properties.