Back to Devexpress

SeriesPointCollection.AddRange(SeriesPoint[]) Method

corelibraries-devexpress-dot-xtracharts-dot-seriespointcollection-dot-addrange-x28-devexpress-dot-xtracharts-dot-seriespoint-x29.md

latest3.6 KB
Original Source

SeriesPointCollection.AddRange(SeriesPoint[]) Method

Appends an array of series points to the collection.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public void AddRange(
    params SeriesPoint[] points
)
vb
Public Sub AddRange(
    ParamArray points As SeriesPoint()
)

Parameters

NameTypeDescription
pointsSeriesPoint[]

An array of SeriesPoint objects to append to the collection.

|

Remarks

Objects are added to the end of the collection in the same order that they have in the array.

Note

Before adding a SeriesPoint to the collection, use the Series.IsCompatible method, to check if this point’s values correspond to the scale type of the current Series.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AddRange(SeriesPoint[]) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-charts-configure-swift-plot-chart/CS/ASwiftPlotChart/Form1.cs#L53

csharp
pointsToRemoveCount--;
series1.Points.AddRange(pointsToUpdate1);
if (pointsToRemoveCount > 0) {

winforms-charts-configure-swift-plot-chart/VB/ASwiftPlotChart/Form1.vb#L57

vb
If pointsToRemoveCount < series1.Points.Count Then pointsToRemoveCount -= 1
series1.Points.AddRange(pointsToUpdate1)
If pointsToRemoveCount > 0 Then

See Also

Series Scale Types

Add(SeriesPoint)

Remove(SeriesPoint)

RemoveAt(Int32)

RemoveRange(Int32, Int32)

SeriesPointCollection Class

SeriesPointCollection Members

DevExpress.XtraCharts Namespace