Interface
IStyleProperty

Defines the base contract for style properties, providing untyped access to values and metadata for use in property collections and reflection scenarios.

Definition

Namespace:Telerik.Windows.Documents.Flow.Model.Styles.Core

Assembly:Telerik.Windows.Documents.Flow.dll

Syntax:

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

cs-api-definition
bool HasLocalValue { get; }

Property Value

bool

The has local value.

PropertyDefinition

Gets the metadata definition for this property, including its type, name, validation rules, and default value.

Declaration

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

cs-api-definition
void ClearValue()

GetActualValueAsObject()

Resolves the effective value through the inheritance chain and returns it as an untyped object.

Declaration

cs-api-definition
object GetActualValueAsObject()

Returns

object

GetLocalValueAsObject()

Retrieves the directly assigned value as an untyped object, or null if no local value is set.

Declaration

cs-api-definition
object GetLocalValueAsObject()

Returns

object

SetValueAsObject(object)

Assigns a local value from an untyped object, applying validation rules before storing.

Declaration

cs-api-definition
void SetValueAsObject(object value)

Parameters

value

object

The value.