0

I add points to a new LineSeries using series.Points.AddRange.

This series is then added to the PlotModel.

When I then do plotModel.Series(0)., there's no Points property to select the points from. How do I do this?

simonalexander2005
  • 4,338
  • 4
  • 48
  • 92

1 Answers1

1

It turns out the Series property is a generic Series, which doesn't have the concept of Points (which makes sense, as other types of Series might not).

To get the Points out, you need to cast the Series to a LineSeries:

CType(PlotModel.Series(0), LineSeries).Points

((LineSeries)PlotModel.Series(0)).Points

simonalexander2005
  • 4,338
  • 4
  • 48
  • 92