Class StaticData
Holds all StyleInfoProperties used by derived classes. This should go in a product specific StaticData.
The concrete Style class could provide a static memory StaticData that belongs to the process and library.
Inheritance
Inherited Members
Namespace: Syncfusion.Styles
Assembly: Syncfusion.Shared.Base.dll
Syntax
public class StaticData
Constructors
StaticData(Type, Type, Boolean)
Initializes a new StaticData object with information about the parent style class.
Declaration
public StaticData(Type type, Type styleInfoType, bool sortProperties)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | |
System.Type | styleInfoType | Will be used to access the PropertyInfo and its custom attributes for a property. |
System.Boolean | sortProperties |
Properties
IsEmpty
Indicates whether properties have been registered. Returns True if not registered; False otherwise.
Declaration
public bool IsEmpty { get; }
Property Value
Type |
---|
System.Boolean |
PropertyGridSortOrder
Declaration
public string[] PropertyGridSortOrder { get; }
Property Value
Type |
---|
System.String[] |
StyleInfoProperties
Returns a collection with StyleInfoProperty objects.
Declaration
public ICollection StyleInfoProperties { get; }
Property Value
Type |
---|
System.Collections.ICollection |
Methods
AllocateDataVectorSection(Int16, out Int32)
Declaration
public BitVector32.Section AllocateDataVectorSection(short maxValue, out int bvi)
Parameters
Type | Name | Description |
---|---|---|
System.Int16 | maxValue | |
System.Int32 | bvi |
Returns
Type |
---|
System.Collections.Specialized.BitVector32.Section |
CreatePropertyGridSortOrder(String[])
Declaration
public string[] CreatePropertyGridSortOrder(string[] sortOrder)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | sortOrder |
Returns
Type |
---|
System.String[] |
CreateStyleInfoProperty(Type, String)
Registers a StyleInfoProperty for the specified property.
Declaration
public StyleInfoProperty CreateStyleInfoProperty(Type type, string name)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type of the property. |
System.String | name | The name of the property. |
Returns
Type | Description |
---|---|
StyleInfoProperty | The StyleInfoProperty with information about the property. |
CreateStyleInfoProperty(Type, String, StyleInfoPropertyOptions)
Registers a StyleInfoProperty for the specified property.
Declaration
public StyleInfoProperty CreateStyleInfoProperty(Type type, string name, StyleInfoPropertyOptions propertyOptions)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type of the property. |
System.String | name | The name of the property. |
StyleInfoPropertyOptions | propertyOptions | Specifies options for the property. |
Returns
Type | Description |
---|---|
StyleInfoProperty | The StyleInfoProperty with information about the property. |
CreateStyleInfoProperty(Type, String, Int16)
Registers a StyleInfoProperty for the specified property.
Declaration
public StyleInfoProperty CreateStyleInfoProperty(Type type, string name, short maxValue)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type of the property. |
System.String | name | The name of the property. |
System.Int16 | maxValue | The maximal possible Int16 value for the property. |
Returns
Type | Description |
---|---|
StyleInfoProperty | The StyleInfoProperty with information about the property. |
CreateStyleInfoProperty(Type, String, Int16, Boolean)
Registers a StyleInfoProperty for the specified property.
Declaration
public StyleInfoProperty CreateStyleInfoProperty(Type type, string name, short maxValue, bool makeBitValue)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type of the property. |
System.String | name | The name of the property. |
System.Int16 | maxValue | The maximal possible Int16 value for the property. |
System.Boolean | makeBitValue | Indicates whether this StyleInfoProperty should be registered as a member of the BitArray and not to allocate an object reference. |
Returns
Type | Description |
---|---|
StyleInfoProperty | The StyleInfoProperty with information about the property. |
CreateStyleInfoProperty(Type, String, Int16, Boolean, StyleInfoPropertyOptions)
Registers a StyleInfoProperty for the specified property.
Declaration
public StyleInfoProperty CreateStyleInfoProperty(Type type, string name, short maxValue, bool makeBitValue, StyleInfoPropertyOptions propertyOptions)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type of the property. |
System.String | name | The name of the property. |
System.Int16 | maxValue | The maximal possible Int16 value for the property. |
System.Boolean | makeBitValue | Indicates whether this StyleInfoProperty should be registered as a member of the BitArray and not to allocate an object reference. |
StyleInfoPropertyOptions | propertyOptions | Specifies options for the property. |
Returns
Type | Description |
---|---|
StyleInfoProperty | The StyleInfoProperty with information about the property. |
CreateStyleInfoProperty(Type, String, Int16, Boolean, Type, StyleInfoPropertyOptions)
Registers a StyleInfoProperty for the specified property.
Declaration
public StyleInfoProperty CreateStyleInfoProperty(Type type, string name, short maxValue, bool makeBitValue, Type componentType, StyleInfoPropertyOptions propertyOptions)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type of the property. |
System.String | name | The name of the property. |
System.Int16 | maxValue | The maximal possible Int16 value for the property. |
System.Boolean | makeBitValue | Indicates whether this StyleInfoProperty should be registered as a member of the BitArray and not to allocate an object reference. |
System.Type | componentType | The component type that hosts the property. |
StyleInfoPropertyOptions | propertyOptions | Specifies options for the property. |
Returns
Type | Description |
---|---|
StyleInfoProperty | The StyleInfoProperty with information about the property. |
Dispose()
Method to dispose static data object internally for disposing Chart styles.
Declaration
public void Dispose()