You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Points property is indeed a readOnly property, meaning you cannot assign it a list.
But the existing list is accesable and points can be added by adding them through PolyAnno.Points.Add(DataPoint).
var PolyAnno = new PolygonAnnotation()
foreach ([type] point in [Your source])
PolyAnno.Points.Add(New datapoint(point.X, point.Y)).
Plotmodel.Annotations.add(PolyAnno)
You might need to set some more properties such as colors and axiskeys, but this is it for points.
The example does indeed seem to be incorrect however, which is unfortunate.
Ah ok. Thank you for the quickly answerBr, kv--Gesendet mit der WEB.DE Mail AppAm 15.04.25, 12:45 schrieb Spordoz ***@***.***>:
The Points property is indeed a readOnly property, meaning you cannot assign it a list.
But the existing list is accesable and points can be added by adding them through PolyAnno.Points.Add(DataPoint).
var PolyAnno = new PolygonAnnotation()
foreach ([type] point in [Your source])
PolyAnno.Points.Add(New datapoint(point.X, point.Y)).
Plotmodel.Annotations.add(PolyAnno)
You might need to set some more properties such as colors and axiskeys, but this is it for points.
The example does indeed seem to be incorrect however, which is unfortunate.—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
Spordoz left a comment (oxyplot/oxyplot#2135)
The Points property is indeed a readOnly property, meaning you cannot assign it a list.
But the existing list is accesable and points can be added by adding them through PolyAnno.Points.Add(DataPoint).
var PolyAnno = new PolygonAnnotation()
foreach ([type] point in [Your source])
PolyAnno.Points.Add(New datapoint(point.X, point.Y)).
Plotmodel.Annotations.add(PolyAnno)
You might need to set some more properties such as colors and axiskeys, but this is it for points.
The example does indeed seem to be incorrect however, which is unfortunate.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
Activity
Spordoz commentedon Apr 15, 2025
The Points property is indeed a readOnly property, meaning you cannot assign it a list.
But the existing list is accesable and points can be added by adding them through PolyAnno.Points.Add(DataPoint).
var PolyAnno = new PolygonAnnotation()
foreach ([type] point in [Your source])
PolyAnno.Points.Add(New datapoint(point.X, point.Y)).
Plotmodel.Annotations.add(PolyAnno)
You might need to set some more properties such as colors and axiskeys, but this is it for points.
The example does indeed seem to be incorrect however, which is unfortunate.
ChristianKarras commentedon Apr 15, 2025