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