Class
StylePropertyDefinition<TValue, TProperties>

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:

cs-api-definition
public class StylePropertyDefinition<TValue, TProperties> : IStylePropertyDefinition where TProperties : DocumentElementPropertiesBase

Inheritance: objectStylePropertyDefinition<TValue, TProperties>

Implements: IStylePropertyDefinition

Constructors

StylePropertyDefinition(string, StylePropertyOptions, Selector<TProperties, StyleProperty<TValue, TProperties>>, TValue)

Declaration

cs-api-definition
public StylePropertyDefinition(string propertyName, StylePropertyOptions propertyOptions, Selector<TProperties, StyleProperty<TValue, TProperties>> propertySelector, TValue defaultValue)

Parameters

propertyName

string

propertyOptions

StylePropertyOptions

propertySelector

Selector<TProperties, StyleProperty<TValue, TProperties>>

defaultValue

TValue

StylePropertyDefinition(string, StylePropertyOptions, TValue)

Declaration

cs-api-definition
public StylePropertyDefinition(string propertyName, StylePropertyOptions propertyOptions, TValue defaultValue)

Parameters

propertyName

string

propertyOptions

StylePropertyOptions

defaultValue

TValue

Properties

DefaultValue

Gets the default value of the style property.

Declaration

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

Property Value

TValue

GlobalPropertyIndex

Gets the global index of the style property definition.

Declaration

cs-api-definition
public int GlobalPropertyIndex { get; }

Property Value

int

Implements IStylePropertyDefinition.GlobalPropertyIndex

PropertyContainerType

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

Declaration

cs-api-definition
public Type PropertyContainerType { get; }

Property Value

Type

Implements IStylePropertyDefinition.PropertyContainerType

PropertyName

Gets the name of the style property.

Declaration

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

Property Value

string

Implements IStylePropertyDefinition.PropertyName

PropertyOptions

Gets the property options for the style property definition.

Declaration

cs-api-definition
public StylePropertyOptions PropertyOptions { get; }

Property Value

StylePropertyOptions

Implements IStylePropertyDefinition.PropertyOptions

PropertyValueType

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

Declaration

cs-api-definition
public Type PropertyValueType { get; }

Property Value

Type

Implements IStylePropertyDefinition.PropertyValueType

Methods

ClearValue(DocumentElement)

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

Declaration

cs-api-definition
public void ClearValue(DocumentElement element)

Parameters

element

DocumentElement

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

Implements IStylePropertyDefinition.ClearValue(DocumentElement)