Exemplo n.º 1
0
        public void Container_Diagram2()
        {
            // Make sure that empty containers can be drawn
            var doc = this.GetNewDoc();

            var layout1  = new VACONT.ContainerLayout();
            var l1_c1    = layout1.AddContainer("L1/C1");
            var l1_c1_i1 = l1_c1.Add("L1/C1/I1");
            var l1_c2    = layout1.AddContainer("L1/C2"); // this is the empty container

            layout1.PerformLayout();
            var page1 = layout1.Render(doc);

            page1.Delete(0);
            doc.Close(true);
        }
Exemplo n.º 2
0
        public void Container_Diagram1()
        {
            // Purpose: Simple test to make sure that both Containers and Non-Container
            // rendering are supported. The diagram is a single container having a single
            // container item

            var doc = this.GetNewDoc();

            var layout1  = new VACONT.ContainerLayout();
            var l1_c1    = layout1.AddContainer("L1/C1");
            var l1_c1_i1 = l1_c1.Add("L1/C1/I1");

            layout1.PerformLayout();
            var page1 = layout1.Render(doc);

            page1.Delete(0);

            doc.Close(true);
        }
Exemplo n.º 3
0
        public static void SimpleContainer()
        {
            var m = new CONTMODEL.ContainerLayout();

            var c1 = m.AddContainer("Container 1");
            var c2 = m.AddContainer("Container 2");

            c1.Add("A");

            c1.Add("B");
            c1.Add("C");

            c2.Add("1");
            c2.Add("2");
            c2.Add("3");

            m.LayoutOptions = new CONTMODEL.LayoutOptions();
            m.LayoutOptions.ContainerFormatting.ShapeFormatCells.FillForegnd     = "rgb(0,176,240)";
            m.LayoutOptions.ContainerItemFormatting.ShapeFormatCells.FillForegnd = "rgb(250,250,250)";
            m.LayoutOptions.ContainerItemFormatting.ShapeFormatCells.LinePattern = "0";

            m.PerformLayout();
            m.Render(SampleEnvironment.Application.ActiveDocument);
        }