public static IVisio.Shape DrawQuarterArc( this IVisio.Shape shape, Geometry.Point p0, Geometry.Point p1, IVisio.VisArcSweepFlags flags) { var surface = new SurfaceTarget(shape); var s = surface.DrawQuarterArc(p0, p1, flags); return(s); }
public static IVisio.Shape DrawQuarterArc( this IVisio.Shape shape, Drawing.Point p0, Drawing.Point p1, IVisio.VisArcSweepFlags flags) { var surface = new Drawing.DrawingSurface(shape); var s = surface.DrawQuarterArc(p0, p1, flags); return(s); }
public IVisio.Shape DrawQuarterArc(Point p0, Point p1, IVisio.VisArcSweepFlags flags) { if (this.Target.Master != null) { return(this.Target.Master.DrawQuarterArc(p0.X, p0.Y, p1.X, p1.Y, flags)); } else if (this.Target.Page != null) { return(this.Target.Page.DrawQuarterArc(p0.X, p0.Y, p1.X, p1.Y, flags)); } else if (this.Target.Shape != null) { return(this.Target.Shape.DrawQuarterArc(p0.X, p0.Y, p1.X, p1.Y, flags)); } throw new System.ArgumentException("Unhandled Drawing Surface"); }
public static IVisio.Shape DrawQuarterArc(this IVisio.Shape shape, Drawing.Point p0, Drawing.Point p1, IVisio.VisArcSweepFlags flags) { return(Shapes.ShapeHelper.DrawQuarterArc(shape, p0, p1, flags)); }