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
Gets the style id property definition.
protected static readonly StylePropertyDefinition<string> StyleIdPropertyDefinition
Methods
Removes all locally set property values, reverting properties to inherited or default values.
public void ClearLocalValues()
Copies all local property values from another properties instance of the same type.
public virtual void CopyPropertiesFrom(DocumentElementPropertiesBase fromProperties)
From properties.
Enumerates the style properties.
protected abstract IEnumerable<IStyleProperty> EnumerateStyleProperties()
The style properties.
Retrieves the style property matching the specified definition, or null if not found.
public IStyleProperty GetStyleProperty(IStylePropertyDefinition propertyDefinition)
The property definition.
Returns:Gets specific style property or null.
protected abstract IStyleProperty GetStylePropertyOverride(IStylePropertyDefinition propertyDefinition)
The property definition.
Returns:Determines whether any properties have locally set values rather than relying solely on inheritance or defaults.
Properties
Gets or sets the identifier of the style applied to this element, linking it to a named style in the document's StyleRepository.
public string StyleId { get; set; }
The name of the style.
Implements:
Gets the style id property.
protected IStyleProperty StyleIdProperty { get; }
The style id property.
Gets all style properties defined for this element, including the StyleId property.
public IEnumerable<IStyleProperty> StyleProperties { get; }
The style properties.