Class ChartDataPointsCollection
Represents a collection of data points in the series.
Inherited Members
Namespace: Syncfusion.XlsIO.Implementation.Charts
Assembly: Syncfusion.XlsIO.Portable.dll
Syntax
public class ChartDataPointsCollection : CommonObject, IDisposable, IChartDataPoints, IParentApplication, IEnumerable
Constructors
ChartDataPointsCollection(IApplication, Object)
Initializes new instance of the collection and sets its parent and application properties.
Declaration
public ChartDataPointsCollection(IApplication application, object parent)
Parameters
Type | Name | Description |
---|---|---|
IApplication | application | Application object. |
System.Object | parent | Parent object. |
Properties
DefaultDataPoint
Gets the default data point. Read-only.
Declaration
public IChartDataPoint DefaultDataPoint { get; }
Property Value
Type |
---|
IChartDataPoint |
DefPointFormatOrNull
Gets default data format or null. Read-only.
Declaration
public ChartSerieDataFormatImpl DefPointFormatOrNull { get; }
Property Value
Type |
---|
ChartSerieDataFormatImpl |
DeninedDPCount
Returns number of defined (created) data points. Read-only.
Declaration
public int DeninedDPCount { get; }
Property Value
Type |
---|
System.Int32 |
IsLoading
Indicates whether workbook is loading. Read-only.
Declaration
public bool IsLoading { get; }
Property Value
Type |
---|
System.Boolean |
Item[Int32]
Gets the data point with the specified index. Read-only.
Declaration
public IChartDataPoint this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type |
---|
IChartDataPoint |
Methods
Add(ChartDataPointImpl)
Adds new data point to the collection.
Declaration
public void Add(ChartDataPointImpl point)
Parameters
Type | Name | Description |
---|---|---|
ChartDataPointImpl | point | Data point to add. |
Clear()
Removes all elements from the collection.
Declaration
public void Clear()
ClearDataFormats(ChartSerieDataFormatImpl)
Clears all series data formats.
Declaration
public void ClearDataFormats(ChartSerieDataFormatImpl format)
Parameters
Type | Name | Description |
---|---|---|
ChartSerieDataFormatImpl | format | Represents format to update. |
Clone(Object, WorkbookImpl, Dictionary<Int32, Int32>, Dictionary<String, String>)
Creates a new object that is a copy of the current instance.
Declaration
public object Clone(object parent, WorkbookImpl book, Dictionary<int, int> dicFontIndexes, Dictionary<string, string> dicNewSheetNames)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parent | Parent object for the cloned object. |
WorkbookImpl | book | Parent workbook. |
System.Collections.Generic.Dictionary<System.Int32, System.Int32> | dicFontIndexes | Dictionary with new font indexes. |
System.Collections.Generic.Dictionary<System.String, System.String> | dicNewSheetNames | Dictionary with new worksheet names. |
Returns
Type | Description |
---|---|
System.Object | A new object that is a copy of this instance. |
GetEnumerator()
Returns an enumerator that iterates through a collection.
Declaration
public IEnumerator GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator | An IEnumerator object that can be used to iterate through the collection. |
OnDispose()
This method is called during dispose operation.
Declaration
protected override void OnDispose()
Overrides
SerializeDataFormats(OffsetArrayList)
Serializes all used data formats.
Declaration
public void SerializeDataFormats(OffsetArrayList records)
Parameters
Type | Name | Description |
---|---|---|
OffsetArrayList | records | List to serialize into. |
SerializeDataLabels(OffsetArrayList)
Serializes data labels data.
Declaration
public void SerializeDataLabels(OffsetArrayList records)
Parameters
Type | Name | Description |
---|---|---|
OffsetArrayList | records | List to serialize into. |
UpdateSerieIndex()
Updates index of the parent Series.
Declaration
public void UpdateSerieIndex()