ClassStylePropertyDefinition<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:
public class StylePropertyDefinition<TValue, TProperties> : IStylePropertyDefinition where TProperties : DocumentElementPropertiesBase
Inheritance: objectStylePropertyDefinition<TValue, TProperties>
Implements:
Constructors
StylePropertyDefinition(string, StylePropertyOptions, Selector<TProperties, StyleProperty<TValue, TProperties>>, TValue)
Declaration
public StylePropertyDefinition(string propertyName, StylePropertyOptions propertyOptions, Selector<TProperties, StyleProperty<TValue, TProperties>> propertySelector, TValue defaultValue)
Parameters
propertyName
propertyOptions
propertySelector
Selector<TProperties, StyleProperty<TValue, TProperties>>
defaultValue
TValue
StylePropertyDefinition(string, StylePropertyOptions, TValue)
Declaration
public StylePropertyDefinition(string propertyName, StylePropertyOptions propertyOptions, TValue defaultValue)
Parameters
propertyName
propertyOptions
defaultValue
TValue
Properties
DefaultValue
Gets the default value of the style property.
Declaration
public TValue DefaultValue { get; }
Property Value
TValue
GlobalPropertyIndex
Gets the global index of the style property definition.
PropertyContainerType
Gets the type of the property container associated with this style property definition.
Declaration
public Type PropertyContainerType { get; }
Property Value
Implements
PropertyName
Gets the name of the style property.
PropertyOptions
Gets the property options for the style property definition.
Declaration
public StylePropertyOptions PropertyOptions { get; }
Property Value
Implements
PropertyValueType
Gets the type of the property value associated with the style property definition.
Methods
ClearValue(DocumentElement)
Clears the value of the specified style property for the given document element.
Declaration
public void ClearValue(DocumentElement element)
Parameters
element
The document element from which the style property value will be cleared.
Implements