public List <IVisio.Shape> New_VisioShape( IVisio.Master[] masters, double[] points) { var cmd = new VisioPowerShell.Commands.NewVisioShape(); cmd.Masters = masters; cmd.Points = points; var shape_list = cmd.InvokeFirst <List <IVisio.Shape> >(); return(shape_list); }
public IVisio.Shape New_VisioShape( VisioPowerShell.Commands.ShapeType type, double[] points) { var cmd = new VisioPowerShell.Commands.NewVisioShape(); cmd.Type = type; cmd.Points = points; var shape = cmd.InvokeFirst <IVisio.ShapeClass>(); return(shape); }