internal static void InsertLine(ViewBase view, Point start, Point end)
 {
     TSD.Line line = new TSD.Line(view, start, end);
     TSD.Line.LineAttributes lineAttributes = new TSD.Line.LineAttributes();
     lineAttributes.Arrowhead =
         new ArrowheadAttributes(ArrowheadPositions.End, ArrowheadTypes.FilledArrow, 2, 3);
     lineAttributes.Line =
         new LineTypeAttributes(LineTypes.SolidLine, DrawingColors.Black);
     line.Attributes = lineAttributes;
     line.Insert();
     line.Modify();
 }
Ejemplo n.º 2
0
        internal static void InsertLine(ViewBase view, Point start, Point end)
        {
            if (start != null && end != null)
            {
                TSD.Line line = new TSD.Line(view,
                                             Extensions.TransformPointToDisplay(start, view),
                                             Extensions.TransformPointToDisplay(end, view));

                TSD.Line.LineAttributes la = new TSD.Line.LineAttributes();
                la.Line.Type    = LineTypes.DashDot;
                la.Line.Color   = DrawingColors.Black;
                line.Attributes = la;

                line.Insert();
                line.Modify();
            }
        }