Kombinieren Sie Diagram
Contents
[
Hide
]
Mögliche Nutzungsszenarien
Mit Aspose.Diagram können Sie zwei visio-Dateien zu einer kombinieren. Aspose.Diagram for .NET API hat dieDiagram Klasse, die eine Visio-Zeichnung darstellt. Mit der MethodeKombinieren inDiagram Klasse zum Kombinieren von Diagrammen.
Beispielcode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir_Shapes(); | |
// Load a Visio diagram | |
Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx"); | |
// Load another Visio diagram | |
Diagram diagram2 = new Diagram(Drawing2.vsdx"); | |
diagram2.Combine(diagram); | |
// Save the new Visio | |
newDiagram.Save(dataDir + "out.vsdx", SaveFileFormat.VSDX); |