ClassDocumentElementPropertiesBase
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:
public abstract class DocumentElementPropertiesBase : IElementWithStyle
Inheritance: objectDocumentElementPropertiesBase
Derived Classes:
Implements:
Fields
StyleIdPropertyDefinition
Gets the style id property definition.
Declaration
protected static readonly StylePropertyDefinition<string> StyleIdPropertyDefinition
Field Value
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
The name of the style.
Implements
StyleIdProperty
Gets the style id property.
Declaration
protected IStyleProperty StyleIdProperty { get; }
Property Value
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
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
fromProperties
From properties.
EnumerateStyleProperties()
Enumerates the style properties.
Declaration
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
public IStyleProperty GetStyleProperty(IStylePropertyDefinition propertyDefinition)
Parameters
propertyDefinition
The property definition.
Returns
GetStylePropertyOverride(IStylePropertyDefinition)
Gets specific style property or null.
Declaration
protected abstract IStyleProperty GetStylePropertyOverride(IStylePropertyDefinition propertyDefinition)
Parameters
propertyDefinition
The property definition.
Returns
HasLocalValues()
Determines whether any properties have locally set values rather than relying solely on inheritance or defaults.
Declaration
public bool HasLocalValues()
Returns
True if there are local property values.