private static void DrawLine(IGroupElement3 group, IPolyline line) { //LineGraphics (LineElementClass) will only accept IPolyline (not ILine) var element = new LineElementClass { Geometry = line }; group.AddElement(element); }
private static void DrawLabel(IGroupElement3 group, string label, IPoint point) { var text = new TextElementClass { AnchorPoint = esriAnchorPointEnum.esriCenterPoint, Text = label, Geometry = point }; group.AddElement(text); }