ClassStylePropertyDefinition<TValue>
Defines a typed style property with default value, validation rules, and metadata for use in the Flow document styling system.
Definition
Namespace:Telerik.Windows.Documents.Flow.Model.Styles.Core
Assembly:Telerik.Windows.Documents.Flow.dll
Type Parameters:
TValue
Syntax:
public class StylePropertyDefinition<TValue> : IStylePropertyDefinition
Inheritance: objectStylePropertyDefinition<TValue>
Implements:
Properties
DefaultValue
Gets the default value applied when no local or inherited value is set for this property.
Declaration
public TValue DefaultValue { get; }
Property Value
TValue
The default value.
PropertyName
Gets the property name as used in style definitions and serialization.
Declaration
public string PropertyName { get; }
Property Value
The name of the property.
Implements
StylePropertyType
Gets the category of document element this property applies to, determining its scope and inheritance behavior.
Declaration
public StylePropertyType StylePropertyType { get; }
Property Value
The type of the style property.
Implements
Validation
Gets the validation rules that constrain acceptable values for this property.
Declaration
public StylePropertyValidation Validation { get; }
Property Value
The validation.
Implements
Methods
GetDefaultValueAsObject()
Returns the default value as an untyped object for use in non-generic contexts.