ClassPropertyDefinition<T>
Defines strongly-typed metadata for a cell property, including its name, default value, layout impact, and style category.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.PropertySystem
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Type Parameters:
T
The type of the T.
Syntax:
public class PropertyDefinition<T> : IPropertyDefinition<T>, IPropertyDefinition
Inheritance: objectPropertyDefinition<T>
Implements:
Constructors
PropertyDefinition(string, bool, StylePropertyGroup, T, bool)
Initializes a new instance of the PropertyDefinition<T> class.
Declaration
public PropertyDefinition(string name, bool affectsLayout, StylePropertyGroup stylePropertyGroup, T defaultValue = default, bool useSameValueAsPreviousOnInsert = true)
Parameters
name
The name of the property.
affectsLayout
The affects layout.
stylePropertyGroup
The style property group.
defaultValue
T
The default value.
useSameValueAsPreviousOnInsert
The use same value as previous on insert.
Properties
AffectsLayout
Indicates whether changes to this property require recalculating cell positions and sizes in the layout.
Declaration
public bool AffectsLayout { get; }
Property Value
The value indicating whether the property affects layout.
Implements
DefaultValue
The default value returned when this property is not explicitly set on a cell, row, or column.
Declaration
public T DefaultValue { get; }
Property Value
T
The default value.
Implements
Name
The unique identifier for this property definition.
Declaration
public string Name { get; }
Property Value
The name of the property.
Implements
StylePropertyGroup
The category to which this property belongs (Number, Alignment, Font, Border, Fill, Protection), used for selective style application.
Declaration
public StylePropertyGroup StylePropertyGroup { get; }
Property Value
The style property group.
Implements
UseSameValueAsPreviousOnInsert
Indicates whether newly inserted cells inherit this property value from the preceding cell.
Declaration
public bool UseSameValueAsPreviousOnInsert { get; }
Property Value
The value indicating whether to use same value as previous on insert.
Implements