Class
DocumentElementPropertiesBase

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:

cs-api-definition
public abstract class DocumentElementPropertiesBase : IElementWithStyle

Inheritance: objectDocumentElementPropertiesBase

Derived Classes: CharacterPropertiesDocumentPropertiesParagraphPropertiesSectionPropertiesTableCellPropertiesTablePropertiesTableRowProperties

Implements: IElementWithStyle

Fields

StyleIdPropertyDefinition

Gets the style id property definition.

Declaration

cs-api-definition
protected static readonly StylePropertyDefinition<string> StyleIdPropertyDefinition

Field Value

StylePropertyDefinition<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

cs-api-definition
public string StyleId { get; set; }

Property Value

string

The name of the style.

Implements IElementWithStyle.StyleId

StyleIdProperty

Gets the style id property.

Declaration

cs-api-definition
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

cs-api-definition
public IEnumerable<IStyleProperty> StyleProperties { get; }

Property Value

IEnumerable<IStyleProperty>

The style properties.

Methods

ClearLocalValues()

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

Declaration

cs-api-definition
public void ClearLocalValues()

CopyPropertiesFrom(DocumentElementPropertiesBase)

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

Declaration

cs-api-definition
public virtual void CopyPropertiesFrom(DocumentElementPropertiesBase fromProperties)

Parameters

fromProperties

DocumentElementPropertiesBase

From properties.

EnumerateStyleProperties()

Enumerates the style properties.

Declaration

cs-api-definition
protected abstract IEnumerable<IStyleProperty> EnumerateStyleProperties()

Returns

IEnumerable<IStyleProperty>

The style properties.

GetStyleProperty(IStylePropertyDefinition)

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

Declaration

cs-api-definition
public IStyleProperty GetStyleProperty(IStylePropertyDefinition propertyDefinition)

Parameters

propertyDefinition

IStylePropertyDefinition

The property definition.

Returns

IStyleProperty

GetStylePropertyOverride(IStylePropertyDefinition)

Gets specific style property or null.

Declaration

cs-api-definition
protected abstract IStyleProperty GetStylePropertyOverride(IStylePropertyDefinition propertyDefinition)

Parameters

propertyDefinition

IStylePropertyDefinition

The property definition.

Returns

IStyleProperty

HasLocalValues()

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

Declaration

cs-api-definition
public bool HasLocalValues()

Returns

bool

True if there are local property values.