Class ChartSeriesModelAdapter
This class is the wrapper for ChartSeries. Implements the IEditableChartSeriesModel and IChartSeriesModel interfaces.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Chart
Assembly: Syncfusion.Chart.Base.dll
Syntax
public class ChartSeriesModelAdapter : IEditableChartSeriesModel, IChartSeriesModel, IChartEditableCategory, IChartSeriesCategory
Constructors
ChartSeriesModelAdapter(ChartSeries)
Initializes a new instance of the ChartSeriesModelAdapter class.
Declaration
public ChartSeriesModelAdapter(ChartSeries series)
Parameters
Type | Name | Description |
---|---|---|
ChartSeries | series | The series. |
Properties
Count
Please refer to Count.
Declaration
public virtual int Count { get; }
Property Value
Type |
---|
System.Int32 |
Methods
Add(Double, Double[])
Adds data to the end of the data representation.
Declaration
public void Add(double x, double[] yValues)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | The x. |
System.Double[] | yValues | The y values. |
Add(Double, Double[], Boolean)
Adds data to the end of the data representation.
Declaration
public void Add(double x, double[] yValues, bool isEmpty)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | X value. |
System.Double[] | yValues | The y values. |
System.Boolean | isEmpty | if set to |
Add(Double, Double[], Boolean, String)
Declaration
public void Add(double x, double[] yValues, bool isEmpty, string category)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | |
System.Double[] | yValues | |
System.Boolean | isEmpty | |
System.String | category |
Add(Double, Double[], String)
Declaration
public void Add(double x, double[] yValues, string category)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | |
System.Double[] | yValues | |
System.String | category |
Add(String)
Declaration
public void Add(string category)
Parameters
Type | Name | Description |
---|---|---|
System.String | category |
Clear()
Please refer to Clear().
Declaration
public void Clear()
GetCategory(Int32)
Gets the category model of ChartSeriesModel.
Declaration
public virtual string GetCategory(int xIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | xIndex |
Returns
Type |
---|
System.String |
GetEmpty(Int32)
Please refer to GetEmpty(Int32).
Declaration
public virtual bool GetEmpty(int xIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | xIndex |
Returns
Type |
---|
System.Boolean |
GetX(Int32)
Please refer to GetX(Int32).
Declaration
public virtual double GetX(int xIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | xIndex |
Returns
Type |
---|
System.Double |
GetY(Int32)
Please refer to GetY(Int32).
Declaration
public virtual double[] GetY(int xIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | xIndex |
Returns
Type |
---|
System.Double[] |
Insert(Int32, Double, Double[])
Please refer to Insert(Int32, Double, Double[]).
Declaration
public void Insert(int xIndex, double x, double[] yValues)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | xIndex | Index value where the insertion is to be made. |
System.Double | x | The X value. |
System.Double[] | yValues | The associated Y values. |
Insert(Int32, Double, Double[], String)
Declaration
public void Insert(int xIndex, double x, double[] yValues, string category)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | xIndex | |
System.Double | x | |
System.Double[] | yValues | |
System.String | category |
Remove(Int32)
Please refer to Remove(Int32).
Declaration
public void Remove(int xIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | xIndex | Index value where data is to be removed. |
SetCategory(Int32, String)
Sets the CategoryData to ChartSeries.
Declaration
public void SetCategory(int xIndex, string category)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | xIndex | Index value where data is to be changed. |
System.String | category | New Y values. |
SetEmpty(Int32, Boolean)
Please refer to SetEmpty(Int32, Boolean).
Declaration
public void SetEmpty(int xIndex, bool isEmpty)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | xIndex | Index value where the empty state indicator is to be stored. |
System.Boolean | isEmpty | Empty state indicator. |
SetX(Int32, Double)
Please refer to SetX(Int32, Double).
Declaration
public void SetX(int xIndex, double value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | xIndex | Index value where the data is to be changed. |
System.Double | value | New X value. |
SetY(Int32, Double[])
Please refer to SetY(Int32, Double[]).
Declaration
public void SetY(int xIndex, double[] yValues)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | xIndex | Index value where data is to be changed. |
System.Double[] | yValues | New Y values. |
Events
Changed
Please refer to Changed.
Declaration
public event ListChangedEventHandler Changed
Event Type
Type |
---|
System.ComponentModel.ListChangedEventHandler |