New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinForms.Documents.Model.Styles

Assembly:Telerik.WinControls.RichTextEditor.dll

Type Parameters:

TValue

TProperties

Syntax:

C#
public class StylePropertyDefinition<TValue, TProperties> : IStylePropertyDefinition where TProperties : DocumentElementPropertiesBase

Inheritance: objectStylePropertyDefinition<TValue, TProperties>

Implements: IStylePropertyDefinition

Constructors

C#
public StylePropertyDefinition(string propertyName, StylePropertyOptions propertyOptions, Selector<TProperties, StyleProperty<TValue, TProperties>> propertySelector, TValue defaultValue)
Parameters:propertyNamestringpropertyOptionsStylePropertyOptionspropertySelectorSelector<TProperties, StyleProperty<TValue, TProperties>>defaultValueTValue
C#
public StylePropertyDefinition(string propertyName, StylePropertyOptions propertyOptions, TValue defaultValue)
Parameters:propertyNamestringpropertyOptionsStylePropertyOptionsdefaultValueTValue

Properties

C#
public TValue DefaultValue { get; }
C#
public int GlobalPropertyIndex { get; }

Implements: IStylePropertyDefinition.GlobalPropertyIndex

C#
public Type PropertyContainerType { get; }

Implements: IStylePropertyDefinition.PropertyContainerType

C#
public string PropertyName { get; }

Implements: IStylePropertyDefinition.PropertyName

C#
public StylePropertyOptions PropertyOptions { get; }

Implements: IStylePropertyDefinition.PropertyOptions

C#
public Type PropertyValueType { get; }

Implements: IStylePropertyDefinition.PropertyValueType

Methods

C#
public void ClearValue(DocumentElement element)
Parameters:elementDocumentElement

Implements: IStylePropertyDefinition.ClearValue(DocumentElement)