New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
public interface IStyleProperty

Methods

Removes the locally assigned value, allowing the property to inherit from styles or document defaults.

C#
void ClearValue()

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

C#
object GetActualValueAsObject()
Returns:

object

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

C#
object GetLocalValueAsObject()
Returns:

object

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

C#
void SetValueAsObject(object value)
Parameters:valueobject

The value.

Properties

Gets whether a value has been directly assigned to this property, as opposed to being inherited from styles or defaults.

C#
bool HasLocalValue { get; }
Property Value:

The has local value.

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

C#
IStylePropertyDefinition PropertyDefinition { get; }
Property Value:

The property definition.