Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }