public static IVisio.Shape DrawRectangle(this IVisio.Page page, Geometry.Rectangle rect) { var surface = new SurfaceTarget(page); var shape = surface.DrawRectangle(rect); return(shape); }