DrawImporter Class
Remarks See Also

DrawImporter lets you import an OpenOffice Draw document into a Diagram or DiagramDocument object.

Namespace: MindFusion.Diagramming.Import
Package: MindFusion.Diagramming.Import.Draw


C#  Copy Code

public class DrawImporter

Visual Basic  Copy Code

Public Class DrawImporter


The DrawImporter class can import .odg files, created by the OpenOffice Draw vector graphics editor. In order to use it, you must add a reference to the MindFusion.Diagramming.Import.Draw.dll assembly.

Various overloads of the Import method can be used to import the OpenOffice drawing into a DiagramDocument whose pages correspond to the Draw pages, or into a single Diagram whose content is merged from all imported pages. When merging multiple pages, their positions in the diagram depend on the PagesPerRow value.

DrawImporter supports shapes from the General and Flowchart shape palettes in Draw. For each node shape from the .odg file, the importer creates a ShapeNode object whose Shape, Text, Brush and Pen properties are set to values corresponding to the imported OpenOffice shape. For each connector shape, the importer creates a DiagramLink object whose Origin and Destination are set to the corresponding imported nodes, and whose ControlPoints reflect the geometry of the connector.

 Inheritance Hierarchy


 See Also