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
Inherited Members
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
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. |