Imports Visio 2003 XML Drawing files (*.vdx) into NetDiagram.
Namespace: MindFusion.Diagramming.Import
Package: MindFusion.Diagramming.Import.Visio
C# Copy Code |
---|
public class VisioImporter |
Visual Basic Copy Code |
---|
Public Class VisioImporter |
Add a reference to the MindFusion.Diagramming.Import.Visio.dll to your project in order to use this component.
The component allows importing Visio 2003 XML Drawing files (*.vdx) into NetDiagram. The standard Visio flowchart shapes, as well as most of the UML and Database entity shapes are imported to their closest representation in NetDiagram. The Visio connectors are imported as NetDiagram DiagramLink objects, preserving the relationship between the connected nodes. In addition, most of the attributes of Visio objects such as text, text formatting, fill and line colors and styles are preserved. The component raises an event for each imported node to let you set the node shape if it is not recognized by NetDiagram or if you need to set a different shape.
To determine how many pages contains the Visio document and import only a single page, call the GetPageCount and ImportPage methods. All pages of a Visio diagram can be imported at once by calling the ImportAllPages method, which lays out the pages as set in PagesPerRow. More properties and events provided by the class are listed below.
System.Object
MindFusion.Diagramming.Import.VisioImporter