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
Initializes a new instance of the PropertyDefinition<T> class.
public PropertyDefinition(string name, bool affectsLayout, StylePropertyGroup stylePropertyGroup, T defaultValue = default, bool useSameValueAsPreviousOnInsert = true)
The name of the property.
affectsLayoutboolThe affects layout.
stylePropertyGroupStylePropertyGroupThe style property group.
defaultValueTThe default value.
useSameValueAsPreviousOnInsertboolThe use same value as previous on insert.
Properties
Indicates whether changes to this property require recalculating cell positions and sizes in the layout.
public bool AffectsLayout { get; }
The value indicating whether the property affects layout.
Implements:
The default value returned when this property is not explicitly set on a cell, row, or column.
public T DefaultValue { get; }
The default value.
Implements:
The unique identifier for this property definition.
public string Name { get; }
The name of the property.
Implements:
The category to which this property belongs (Number, Alignment, Font, Border, Fill, Protection), used for selective style application.
public StylePropertyGroup StylePropertyGroup { get; }
The style property group.
Implements:
Indicates whether newly inserted cells inherit this property value from the preceding cell.
public bool UseSameValueAsPreviousOnInsert { get; }
The value indicating whether to use same value as previous on insert.
Implements: