Aspose.Diagram.Examples.CSharp.Diagrams.ExportToSVG.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // ExStart:ExportToSVG
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_LoadSaveConvert();

            // Call the diagram constructor to load a VSD diagram
            Diagram diagram = new Diagram(dataDir + "ExportToSVG.vsd");

            // Save SVG Output file
            diagram.Save(dataDir + "Output.svg", SaveFileFormat.SVG);
            // ExEnd:ExportToSVG
        }
    }
ExportToSVG