/// <summary> /// Returns a mark annotation as <see cref="IGraphicsPath"/> in content space. /// </summary> public virtual IGraphicsPath GetAsGraphicsPath(DrawingFactory drawingFactory) { IGraphicsPath path = drawingFactory.CreateGraphicsPath(); PointF[] referencePoints = MarkAnnoData.GetReferencePointsInContentSpace(); switch (MarkAnnoData.MarkType) { case MarkAnnotationType.Tick: path.AddCurve(referencePoints); break; default: path.AddPolygon(referencePoints); break; } return(path); }