Interface IStyleProperty
Defines the base contract for style properties, providing untyped access to values and metadata for use in property collections and reflection scenarios.
Namespace: Telerik.Windows.Documents.Flow.Model.Styles.Core
Assembly: Telerik.Windows.Documents.Flow.dll
Syntax
public interface IStyleProperty
Properties
HasLocalValue
Gets whether a value has been directly assigned to this property, as opposed to being inherited from styles or defaults.
Declaration
bool HasLocalValue { get; }
Property Value
|
System.Boolean
The has local value. |
PropertyDefinition
Gets the metadata definition for this property, including its type, name, validation rules, and default value.
Declaration
IStylePropertyDefinition PropertyDefinition { get; }
Property Value
|
IStylePropertyDefinition
The property definition. |
Methods
ClearValue()
Removes the locally assigned value, allowing the property to inherit from styles or document defaults.
Declaration
void ClearValue()
GetActualValueAsObject()
Resolves the effective value through the inheritance chain and returns it as an untyped object.
Declaration
object GetActualValueAsObject()
Returns
|
System.Object
|
GetLocalValueAsObject()
Retrieves the directly assigned value as an untyped object, or null if no local value is set.
Declaration
object GetLocalValueAsObject()
Returns
|
System.Object
|
SetValueAsObject(Object)
Assigns a local value from an untyped object, applying validation rules before storing.
Declaration
void SetValueAsObject(object value)
Parameters
|
System.Object
value
The value. |