예제 #1
0
        public static IVisio.Shape DrawLine(this IVisio.Shape shape, VA.Drawing.Point p1, VA.Drawing.Point p2)
        {
            var surface = new VA.Drawing.DrawingSurface(shape);
            var s       = surface.DrawLine(p1, p2);

            return(s);
        }
예제 #2
0
        public static IVisio.Shape DrawLine(this IVisio.Page page, VA.Drawing.Point p1, VA.Drawing.Point p2)
        {
            var surface = new VA.Drawing.DrawingSurface(page);
            var shape   = surface.DrawLine(p1.X, p1.Y, p2.X, p2.Y);

            return(shape);
        }
예제 #3
0
 public static IVisio.Shape DrawLine(this IVisio.Shape shape, VA.Drawing.Point p1, VA.Drawing.Point p2)
 {
     var surface = new VA.Drawing.DrawingSurface(shape);
     var s = surface.DrawLine(p1, p2);
     return s;
 }
예제 #4
0
 public static IVisio.Shape DrawLine(this IVisio.Page page, VA.Drawing.Point p1, VA.Drawing.Point p2)
 {
     var surface = new VA.Drawing.DrawingSurface(page);
     var shape = surface.DrawLine(p1.X, p1.Y, p2.X, p2.Y);
     return shape;
 }