Class StylePropertyDefinition<TValue>
Defines a typed style property with default value, validation rules, and metadata for use in the Flow document styling system.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Flow.Model.Styles.Core
Assembly: Telerik.Windows.Documents.Flow.dll
Syntax
public class StylePropertyDefinition<TValue> : IStylePropertyDefinition
Type Parameters
|
TValue
|
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. |
GlobalPropertyIndex
Gets the unique global index for this property definition, used internally for property lookup and storage optimization.
Declaration
public int GlobalPropertyIndex { get; }
Property Value
|
System.Int32
The index of the global property. |
Implements
PropertyName
Gets the property name as used in style definitions and serialization.
Declaration
public string PropertyName { get; }
Property Value
|
System.String
The name of the property. |
Implements
PropertyType
Gets the runtime type of values this property accepts, used for type validation and reflection.
Declaration
public Type PropertyType { get; }
Property Value
|
System.Type
The type 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
|
StylePropertyType
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
|
StylePropertyValidation
The validation. |
Implements
Methods
GetDefaultValueAsObject()
Returns the default value as an untyped object for use in non-generic contexts.
Declaration
public object GetDefaultValueAsObject()
Returns
|
System.Object
|