[英]OxyPlot - Why can't I programmatically see points in a series?
我使用series.Points.AddRange
将点添加到新的LineSeries
中。
然后将该系列添加到PlotModel
。
然后当我做plotModel.Series(0).
,没有Points
属性可以从中选择点。 我该怎么做呢?
事实证明Series
属性是一个通用的Series,它没有Points
的概念(这很有意义,因为其他类型的Series可能没有)。
为了获得Points
,您需要将Series
转换为LineSeries
:
CType(PlotModel.Series(0), LineSeries).Points
((LineSeries)PlotModel.Series(0)).Points
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.