corelibraries-devexpress-dot-xtracharts-dot-seriespointcollection-dot-removerange-x28-system-dot-int32-system-dot-int32-x29.md
Removes the specified range of series points from the collection.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
public void RemoveRange(
int index,
int count
)
Public Sub RemoveRange(
index As Integer,
count As Integer
)
| Name | Type | Description |
|---|---|---|
| index | Int32 |
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.
|
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
if (pointsToRemoveCount > 0) {
series1.Points.RemoveRange(0, pointsToRemoveCount);
}
winforms-charts-configure-swift-plot-chart/VB/ASwiftPlotChart/Form1.vb#L59
If pointsToRemoveCount > 0 Then
series1.Points.RemoveRange(0, pointsToRemoveCount)
End If
See Also