Class PropertyDefinition<T>
Defines strongly-typed metadata for a cell property, including its name, default value, layout impact, and style category.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.PropertySystem
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public class PropertyDefinition<T> : IPropertyDefinition<T>, IPropertyDefinition
Type Parameters
|
T
The type of the T. |
Constructors
PropertyDefinition(String, Boolean, StylePropertyGroup, T, Boolean)
Initializes a new instance of the PropertyDefinition<T> class.
Declaration
public PropertyDefinition(string name, bool affectsLayout, StylePropertyGroup stylePropertyGroup, T defaultValue = null, bool useSameValueAsPreviousOnInsert = true)
Parameters
|
System.String
name
The name of the property. |
|
System.Boolean
affectsLayout
The affects layout. |
|
StylePropertyGroup
stylePropertyGroup
The style property group. |
|
T
defaultValue
The default value. |
|
System.Boolean
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
|
System.Boolean
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
|
System.String
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
|
StylePropertyGroup
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
|
System.Boolean
The value indicating whether to use same value as previous on insert. |