Diagram Class

Root element of Visio objects hierarchy.
Inheritance Hierarchy
SystemObject
  Aspose.DiagramDiagram

Namespace:  Aspose.Diagram
Assembly:  Aspose.Diagram (in Aspose.Diagram.dll) Version: 20.3.0.0 (20.3)
Syntax
public class Diagram : IDisposable

The Diagram type exposes the following members.

Constructors
  NameDescription
Public methodDiagram
Initializes a new instance of the Diagram class
Public methodDiagram(Stream)
Public Aspose.Diagram class constructor, loads the diagram from the stream.
Public methodDiagram(String)
Public Aspose.Diagram class constructor, loads the diagram from the file.
Public methodDiagram(Stream, LoadFileFormat)
Public Aspose.Diagram class constructor, loads the diagram from the stream using predefined format.
Public methodDiagram(Stream, LoadOptions)
Public Aspose.Diagram class constructor, loads the diagram from the stream using predefined load file options.
Public methodDiagram(String, LoadFileFormat)
Public Aspose.Diagram class constructor, loads the diagram from the file using predefined format.
Public methodDiagram(String, LoadOptions)
Public Aspose.Diagram class constructor, loads the diagram from the file using predefined load file options.
Properties
  NameDescription
Public propertyBuildnum
The build number of the Visio instance used to create the document.
Public propertyColors
Contains the document's color table. Each document contains a single color table, which lists the 24 standard colors that are available for application to objects such as shapes, text, and layers in the document.
Public propertyDataConnections
Contains the DataConnection elements for the document.
Public propertyDataRecordSets
The collection of DataRecordset objects associated with a Document object.
Public propertyDocLangID
The unique ID of the user-interface language the user has specified in Microsoft Office 2010 Language Preferences.
Public propertyDocumentProps
Contains document property elements such as the document's title, author, and so on.
Public propertyDocumentSettings
Contains elements that specify document settings.
Public propertyDocumentSheet
Specifies a document's ShapeSheet structure.
Public propertyEmailRoutingData
Contains a MIME (Multipurpose Internet Mail Extensions) encoded MAPI e-mail routing slip for the document.
Public propertyEventItems
Contains an EventItem element for each event to which an object should respond.
Public propertyFontDirs
Indicates the Fonts folder path
Public propertyFonts
Contains a collection of Font elements
Public propertyHeaderFooter
Contains elements for a document's header and footer.
Public propertyKey
Indicates whether the document has been modified outside of Visio. If present, Visio will fully test the contents of the file. Omit for files you create outside of Visio.
Public propertyMasters
Collection Master objects.
Public propertyMetric
Whether to use metric units in the drawing. Set this attribute to True (1) to use metric units; set it to False (0) to use English units.
Public propertyPages
Collection Page objects.
Public propertyRibbonX
The Ribbon XML string that is passed to the document to customize the ribbon user interface.
Public propertySolutionXMLs
XML value.
Public propertyStart
Indicates whether the document has been modified outside of Visio. If present, Visio will fully test the contents of the file. Omit for files you create outside of Visio.
Public propertyStyleSheets
Collection StyleSheet objects.
Public propertyUserCustomUI
The Ribbon XML string that is passed to the document to customize the Quick Access toolbar or the ribbon.
Public propertyValidation
Stores information about diagram validation for the document.
Public propertyVbaProject
Gets the VbaProjectVbaProject.
Public propertyVbProjectData
Contains the Microsoft Visual Basic for Applications project data in MIME (Multipurpose Internet Mail Extensions) encoded format.
Public propertyVersion
The version number of the Visio instance. Microsoft Visio 2010 = 14.
Public propertyWindows
Contains the Window elements for a document.
Methods
  NameDescription
Public methodAddMaster(Stream, Int32)
Adds master to diagram from template stream by master's ID.
Public methodAddMaster(Stream, String)
Adds master to diagram from template stream by master's Name or NameU.
Public methodAddMaster(String, Int32)
Adds master to diagram from template file by master's ID.
Public methodAddMaster(String, String)
Adds master to diagram from template file by master's Name or NameU.
Public methodAddMaster(Diagram, String)
Adds master to diagram from source diagram by master's Name or NameU.
Public methodAddShape(Shape, String, Int32)
Adds shape created by master to specific page.
Public methodAddShape(Double, Double, String, Int32)
Adds shape created by master on page with defined PinX and PinY.
Public methodAddShape(Double, Double, Double, Double, String, Int32)
Adds shape created by master on page with defined PinX,PinY,Width and Height.
Public methodCombine
Combines another Diagram object.
Public methodCopyTheme
Copies Theme from a source Diagram.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEquals (Inherited from Object.)
Public methodStatic memberExport(Stream, Stream)
Exports the diagram from vsd stream to vdw stream format. Not implemented yet.
Public methodStatic memberExport(Stream, String)
Exports the diagram from vsd stream to *.vdw file format. Not implemented yet.
Public methodStatic memberExport(String, Stream)
Exports the diagram from vsd file to vdw stream format. Not implemented yet.
Public methodStatic memberExport(String, String)
Exports the diagram from vsd to vdw format. Not implemented yet.
Protected methodFinalize (Inherited from Object.)
Public methodGetDefaultFontDir
Get the Default Fonts folder path
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodGetUnusedStyles
Get unused Styles
Public methodHasHiddenInfo
Indicates whether this diagram has hidden infomation.
Public methodLayout
Lays out the shapes and/or reroutes the connectors for all pages of diagram.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodPrint
Prints the whole document to the default printer.
Public methodPrint(PrinterSettings)
Prints the document according to the specified printer settings,using the standard (no User Interface) print controller.
Public methodPrint(String)
Print the whole document to the specified printer,using the standard (no User Interface) print controller.
Public methodPrint(PrinterSettings, String)
Prints the document according to the specified printer settings,using the standard (no User Interface) print controller and a document name.
Public methodPrint(String, String)
Prints the document,using the standard (no User Interface) print controller and a document name.
Public methodRefresh
Invokes Refresh method for all DataRecordSet in the Diagram.
Public methodRemoveHiddenInformation
Remove unused information
Public methodRemoveMacro
Removes VBA/macro from this diagram.
Public methodSave(Stream, SaveFileFormat)
Saves the diagram data to the stream.
Public methodSave(Stream, SaveOptions)
Saves the diagram to a stream using the specified save options.
Public methodSave(String, SaveFileFormat)
Saves the diagram data to the file.
Public methodSave(String, SaveOptions)
Saves the document to a file using the specified save options.
Public methodToString (Inherited from Object.)
See Also