Defines the identity, value type, default, and layout effects of a document or style property.
Definition
Namespace:Telerik.WinForms.Documents.Model.Styles
Assembly:Telerik.WinControls.RichTextEditor.dll
Type Parameters:
TValue
The property's value type.
TProperties
The properties container that owns the property.
Syntax:
public class StylePropertyDefinition<TValue, TProperties> : IStylePropertyDefinition where TProperties : DocumentElementPropertiesBase
Inheritance: objectStylePropertyDefinition<TValue, TProperties>
Implements:
Constructors
Creates a property definition from its name, layout options, and default value.
public StylePropertyDefinition(string propertyName, StylePropertyOptions propertyOptions, Selector<TProperties, StyleProperty<TValue, TProperties>> propertySelector, TValue defaultValue)
The name used to look up the property in its properties container.
propertyOptionsStylePropertyOptionsThe layout invalidation flags for changes to the property.
propertySelectorSelector<TProperties, StyleProperty<TValue, TProperties>>A selector parameter that this constructor does not retain or invoke.
defaultValueTValueThe value used when no local, style, or parent value is available.
Creates a property definition without a selector.
public StylePropertyDefinition(string propertyName, StylePropertyOptions propertyOptions, TValue defaultValue)
The name used to look up the property in its properties container.
propertyOptionsStylePropertyOptionsThe layout invalidation flags for changes to the property.
defaultValueTValueThe value used when no local, style, or parent value is available.
Properties
DefaultValue
TValue
Gets the value used when no local, style, or parent value is available.
public TValue DefaultValue { get; }
Gets the index used to locate this property in a properties container.
public int GlobalPropertyIndex { get; }
Implements:
Gets the runtime type of the properties container that owns the property.
public Type PropertyContainerType { get; }
Implements:
Gets the name by which the property can be looked up in its properties container.
public string PropertyName { get; }
Implements:
Gets the layout invalidation flags applied when this property's value changes.
public StylePropertyOptions PropertyOptions { get; }
Implements:
Gets the runtime type of the property's value.
public Type PropertyValueType { get; }
Implements:
Methods
Clears the local value of this property on a document element so normal value resolution can resume.
public void ClearValue(DocumentElement element)
The document element whose property value is cleared.
Implements: