繁体   English   中英

OxyPlot-为什么我不能以编程方式查看序列中的点?

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM