Example #1
0
        public static void DirectedGraphViaMsagl()
        {
            var page1 = SampleEnvironment.Application.ActiveDocument.Pages.Add();
            var directed_graph_drawing = DirectedGraphLayoutSamples.get_dg_drawing();
            var options = new MsaglLayoutOptions();

            options.UseDynamicConnectors = false;
            directed_graph_drawing.Render(page1, options);
        }
Example #2
0
        public static void DirectedGraphViaVisio()
        {
            var page1 = SampleEnvironment.Application.ActiveDocument.Pages.Add();
            var directed_graph_drawing = DirectedGraphLayoutSamples.get_dg_drawing();

            var visio_options = new VisioLayoutOptions();

            directed_graph_drawing.Render(page1, visio_options);

            var padding = new VA.Geometry.Size(0.5, 0.5);

            page1.ResizeToFitContents(padding);
        }