Back to Devexpress

SeriesPointCollection.RemoveRange(Int32, Int32) Method

corelibraries-devexpress-dot-xtracharts-dot-seriespointcollection-dot-removerange-x28-system-dot-int32-system-dot-int32-x29.md

latest3.4 KB
Original Source

SeriesPointCollection.RemoveRange(Int32, Int32) Method

Removes the specified range of series points from the collection.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public void RemoveRange(
    int index,
    int count
)
vb
Public Sub RemoveRange(
    index As Integer,
    count As Integer
)

Parameters

NameTypeDescription
indexInt32

An integer specifying the starting index for the series points range to be removed.

| | count | Int32 |

An integer specifying the number of series points to be removed.

|

Remarks

Note that calling either the RemoveRange or Clear method for the SeriesPointCollection instance also disposes all of elements, which are removed from this collection.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RemoveRange(Int32, Int32) 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#L55

csharp
if (pointsToRemoveCount > 0) {
    series1.Points.RemoveRange(0, pointsToRemoveCount);
}

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

vb
If pointsToRemoveCount > 0 Then
    series1.Points.RemoveRange(0, pointsToRemoveCount)
End If

See Also

Remove(SeriesPoint)

RemoveAt(Int32)

Add(SeriesPoint)

AddRange(SeriesPoint[])

SeriesPointCollection Class

SeriesPointCollection Members

DevExpress.XtraCharts Namespace