New to Telerik UI for WPFStart a free 30-day trial

Represents a definition for a style property, including its value and associated properties.

Definition

Namespace:Telerik.Windows.Documents.Model.Styles

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Type Parameters:

TValue

TProperties

Syntax:

C#
public class StylePropertyDefinition<TValue, TProperties> : IStylePropertyDefinition where TProperties : DocumentElementPropertiesBase

Inheritance: objectStylePropertyDefinition<TValue, TProperties>

Implements: IStylePropertyDefinition

Constructors

C#
public StylePropertyDefinition(string propertyName, StylePropertyOptions propertyOptions, Selector<TProperties, StyleProperty<TValue, TProperties>> propertySelector, TValue defaultValue)
Parameters:propertyNamestringpropertyOptionsStylePropertyOptionspropertySelectorSelector<TProperties, StyleProperty<TValue, TProperties>>defaultValueTValue
C#
public StylePropertyDefinition(string propertyName, StylePropertyOptions propertyOptions, TValue defaultValue)
Parameters:propertyNamestringpropertyOptionsStylePropertyOptionsdefaultValueTValue

Properties

Gets the default value of the style property.

C#
public TValue DefaultValue { get; }

Gets the global index of the style property definition.

C#
public int GlobalPropertyIndex { get; }

Implements: IStylePropertyDefinition.GlobalPropertyIndex

Gets the type of the property container associated with this style property definition.

C#
public Type PropertyContainerType { get; }

Implements: IStylePropertyDefinition.PropertyContainerType

Gets the name of the style property.

C#
public string PropertyName { get; }

Implements: IStylePropertyDefinition.PropertyName

Gets the property options for the style property definition.

C#
public StylePropertyOptions PropertyOptions { get; }

Implements: IStylePropertyDefinition.PropertyOptions

Gets the type of the property value associated with the style property definition.

C#
public Type PropertyValueType { get; }

Implements: IStylePropertyDefinition.PropertyValueType

Methods

Clears the value of the specified style property for the given document element.

C#
public void ClearValue(DocumentElement element)
Parameters:elementDocumentElement

The document element from which the style property value will be cleared.

Implements: IStylePropertyDefinition.ClearValue(DocumentElement)