예제 #1
0
        public void Dom_DropShapes()
        {
            // Render it
            var app        = this.GetVisioApplication();
            var doc        = this.GetNewDoc();
            var stencil    = app.Documents.OpenStencil(this.basic_u_vss);
            var rectmaster = stencil.Masters[this.rectangle];


            // Create the doc
            var shape_nodes = new ShapeList();

            shape_nodes.DrawRectangle(0, 0, 1, 1);
            shape_nodes.Drop(rectmaster, 3, 3);

            shape_nodes.Render(app.ActivePage);

            app.ActiveDocument.Close(true);
        }