corelibraries-devexpress-dot-xtracharts-dot-seriespointcollectiondataadapter.md
Returns a collection of series points.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
[PersistenceMode(PersistenceMode.InnerProperty)]
[XtraChartsLocalizableCategory(XtraChartsCategory.Elements)]
public SeriesPointCollection Points { get; }
<XtraChartsLocalizableCategory(XtraChartsCategory.Elements)>
<PersistenceMode(PersistenceMode.InnerProperty)>
Public ReadOnly Property Points As SeriesPointCollection
| Type | Description |
|---|---|
| SeriesPointCollection |
A collection of SeriesPoint objects.
|
The following example shows how to create series points and add them to a series.
using DevExpress.XtraCharts;
namespace ChartDataAdapters {
public partial class Form1 : Form {
private void Form1_Load(object sender, EventArgs e) {
Series series = new Series("Series1", ViewType.Point);
SeriesPointCollectionDataAdapter dataAdapter = new SeriesPointCollectionDataAdapter();
for (int i = 0; i < 10; i++)
dataAdapter.Points.Add(new SeriesPoint(i, i));
series.DataAdapter = dataAdapter;
}
}
}
Imports DevExpress.XtraCharts
Namespace ChartDataAdapters
Public Partial Class Form1
Inherits Form
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim series As Series = New Series("Series1", ViewType.Point)
Dim dataAdapter As SeriesPointCollectionDataAdapter = New SeriesPointCollectionDataAdapter()
For i As Integer = 0 To 10 - 1
dataAdapter.Points.Add(New SeriesPoint(i, i))
Next
series.DataAdapter = dataAdapter
End Sub
End Class
End Namespace
See Also
SeriesPointCollectionDataAdapter Class