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