Class ChartStyleInfoSubObject
ChartStyleInfoSubObject is an abstract base class for classes to be used as sub-objects in a ChartStyleInfo.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Chart
Assembly: Syncfusion.Chart.Base.dll
Syntax
public abstract class ChartStyleInfoSubObject : ChartSubStyleInfoBase, ICustomTypeDescriptor, IDisposable, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IStyleInfoSubObject
Remarks
ChartStyleInfoSubObject is derived from StyleInfoBase and thus provides the same easy way to provide properties that can inherit values from base styles at run-time.
The difference is that ChartStyleInfoSubObject supports this inheritance mechanism as a sub-object from a ChartStyleInfo. A sub-object needs to have knowledge about its parent object and be able to walk the base styles from the parent object.
Examples for implementation of ChartStyleInfoSubObject is the font class in Essential Chart.
Programmers can derive their own style classes from ChartStyleInfoSubObject and add type-safe (and Intelli-sense) supported custom properties to the style class.
See the overview of StyleInfoBase for further discussion about style objects.
Constructors
ChartStyleInfoSubObject(StyleInfoStore)
Initializes a new ChartStyleInfoSubObject object and associates it with an existing StyleInfoStore.
Declaration
public ChartStyleInfoSubObject(StyleInfoStore store)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoStore | store | A StyleInfoStore that holds data for this object. All changes made in this style object will be saved in the StyleInfoStore object. |
ChartStyleInfoSubObject(StyleInfoSubObjectIdentity, StyleInfoStore)
Initializes a new ChartStyleInfoSubObject object and associates it with an existing StyleInfoStore.
Declaration
public ChartStyleInfoSubObject(StyleInfoSubObjectIdentity identity, StyleInfoStore store)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoSubObjectIdentity | identity | A StyleInfoSubObjectIdentity that holds the identity for this StyleInfoBase. A StyleInfoStore that holds data for this object. All changes made in this style object will be saved in the StyleInfoStore object. |
StyleInfoStore | store |
Methods
GetChartStyleInfo()
Returns the ChartStyleInfo that this sub-object belongs to.
Declaration
public ChartStyleInfo GetChartStyleInfo()
Returns
Type | Description |
---|---|
ChartStyleInfo | The parent style object. |