Class
StylePropertyDefinition<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:

cs-api-definition
public class StylePropertyDefinition<TValue> : IStylePropertyDefinition

Inheritance: objectStylePropertyDefinition<TValue>

Implements: IStylePropertyDefinition

Properties

DefaultValue

Gets the default value applied when no local or inherited value is set for this property.

Declaration

cs-api-definition
public TValue DefaultValue { get; }

Property Value

TValue

The default value.

PropertyName

Gets the property name as used in style definitions and serialization.

Declaration

cs-api-definition
public string PropertyName { get; }

Property Value

string

The name of the property.

Implements IStylePropertyDefinition.PropertyName

StylePropertyType

Gets the category of document element this property applies to, determining its scope and inheritance behavior.

Declaration

cs-api-definition
public StylePropertyType StylePropertyType { get; }

Property Value

StylePropertyType

The type of the style property.

Implements IStylePropertyDefinition.StylePropertyType

Validation

Gets the validation rules that constrain acceptable values for this property.

Declaration

cs-api-definition
public StylePropertyValidation Validation { get; }

Property Value

StylePropertyValidation

The validation.

Implements IStylePropertyDefinition.Validation

Methods

GetDefaultValueAsObject()

Returns the default value as an untyped object for use in non-generic contexts.

Declaration

cs-api-definition
public object GetDefaultValueAsObject()

Returns

object

Implements IStylePropertyDefinition.GetDefaultValueAsObject()