New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
public class StylePropertyDefinition<TValue> : IStylePropertyDefinition

Inheritance: objectStylePropertyDefinition<TValue>

Implements: IStylePropertyDefinition

Methods

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

C#
public object GetDefaultValueAsObject()
Returns:

object

Implements: IStylePropertyDefinition.GetDefaultValueAsObject()

Properties

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

C#
public TValue DefaultValue { get; }
Property Value:

The default value.

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

C#
public string PropertyName { get; }
Property Value:

The name of the property.

Implements: IStylePropertyDefinition.PropertyName

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

C#
public StylePropertyType StylePropertyType { get; }
Property Value:

The type of the style property.

Implements: IStylePropertyDefinition.StylePropertyType

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

C#
public StylePropertyValidation Validation { get; }
Property Value:

The validation.

Implements: IStylePropertyDefinition.Validation