Class StylePropertyDefinition<TValue, TProperties>
Represents a definition for a style property, including its value and associated properties.
Inheritance
Namespace: Telerik.Windows.Documents.Model.Styles
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class StylePropertyDefinition<TValue, TProperties> : Object, IStylePropertyDefinition where TProperties : DocumentElementPropertiesBase
Type Parameters
TValue
|
TProperties
|
Constructors
StylePropertyDefinition(String, StylePropertyOptions, TValue)
Declaration
public StylePropertyDefinition(string propertyName, StylePropertyOptions propertyOptions, TValue defaultValue)
Parameters
System.String
propertyName
|
StylePropertyOptions
propertyOptions
|
TValue
defaultValue
|
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
System.String
propertyName
|
StylePropertyOptions
propertyOptions
|
Selector<TProperties, StyleProperty<TValue, TProperties>>
propertySelector
|
TValue
defaultValue
|
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.
Declaration
public int GlobalPropertyIndex { get; }
Property Value
System.Int32
|
Implements
PropertyContainerType
Gets the type of the property container associated with this style property definition.
Declaration
public Type PropertyContainerType { get; }
Property Value
System.Type
|
Implements
PropertyName
Gets the name of the style property.
Declaration
public string PropertyName { get; }
Property Value
System.String
|
Implements
PropertyOptions
Gets the property options for the style property definition.
Declaration
public StylePropertyOptions PropertyOptions { get; }
Property Value
StylePropertyOptions
|
Implements
PropertyValueType
Gets the type of the property value associated with the style property definition.
Declaration
public Type PropertyValueType { get; }
Property Value
System.Type
|
Implements
Methods
ClearValue(DocumentElement)
Clears the value of the specified style property for the given document element.
Declaration
public void ClearValue(DocumentElement element)
Parameters
DocumentElement
element
The document element from which the style property value will be cleared. |