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:
Methods
Returns the default value as an untyped object for use in non-generic contexts.
Properties
DefaultValue
TValue
Gets the default value applied when no local or inherited value is set for this property.
public TValue DefaultValue { get; }
The default value.
Gets the property name as used in style definitions and serialization.
public string PropertyName { get; }
The name of the property.
Implements:
Gets the category of document element this property applies to, determining its scope and inheritance behavior.
public StylePropertyType StylePropertyType { get; }
The type of the style property.
Implements:
Gets the validation rules that constrain acceptable values for this property.
public StylePropertyValidation Validation { get; }
The validation.
Implements: