![]() |
VOOZH | about |
dotnet add package Aspose.Diagram --version 26.6.0
NuGet\Install-Package Aspose.Diagram -Version 26.6.0
<PackageReference Include="Aspose.Diagram" Version="26.6.0" />
<PackageVersion Include="Aspose.Diagram" Version="26.6.0" />Directory.Packages.props
<PackageReference Include="Aspose.Diagram" />Project file
paket add Aspose.Diagram --version 26.6.0
#r "nuget: Aspose.Diagram, 26.6.0"
#:package Aspose.Diagram@26.6.0
#addin nuget:?package=Aspose.Diagram&version=26.6.0Install as a Cake Addin
#tool nuget:?package=Aspose.Diagram&version=26.6.0Install as a Cake Tool
👁 Version 26.6.0
👁 NuGet
👁 .NET
👁 Docs
👁 API Ref
👁 Examples
👁 Blog
👁 Releases
👁 Support
👁 License
Aspose.Diagram for .NET is a powerful API for managing Microsoft Visio® diagrams in .NET applications. It supports creating, editing, converting, and protecting Visio® files, while maintaining full compatibility with all Visio® objects and properties, including shapes, pages, text, images, layers, and more. The API also enables applying protection to diagrams, converting diagrams to multiple formats (PDF, HTML, images), embedding VBA projects, and linking external data sources. Aspose.Diagram simplifies diagram manipulation for developers by providing comprehensive support for Visio® files across different platforms and environments.
Create Visio Document
Create Visio diagrams programmatically using .NET APIs.
Open Visio Document
Open existing Visio documents in .NET applications.
Save Visio Document
Save Visio diagrams in different supported formats programmatically.
Convert Visio to Excel
Export Visio diagrams to Excel (CSV format) for data analysis.
Convert Visio to PDF
Convert Visio diagrams to PDF format, including multipage PDFs with customizable options.
Convert Visio to Images
Convert Visio diagrams to image formats like PNG, JPEG, BMP, and TIFF.
Convert Visio to HTML
Convert Visio diagrams to HTML for easy web sharing and access.
Convert Visio to Other Formats
Export Visio diagrams to various formats including XML, XPS, SVG, SWF, and XAML.
Working with Diagrams
Manage and manipulate entire Visio diagrams using the Aspose.Diagram API.
Working with Pages
Manage pages within Visio documents, including adding, reordering, and deleting pages.
Working with Layers
Control visibility, protection, and order of layers in Visio diagrams.
Document Properties
Access and modify metadata such as author, title, and subject in Visio documents.
SolutionXML Elements
Work with SolutionXML to store and manage custom data in Visio diagrams.
External Data Sources
Link external data sources to Visio diagrams for dynamic visualization.
VBA Project Integration
Embed and manipulate VBA projects in Visio diagrams using the .NET API.
Themes
Apply built-in themes to Visio diagrams for consistent visual styling.
Working with Shapes
Add, modify, and manipulate shapes within Visio diagrams programmatically.
Drawing
Use drawing tools to create and manipulate shapes and connectors in Visio files.
Geometry Section
Edit the geometry section of Visio shapes for precise positioning and layout.
Working with Masters
Manipulate master shapes to reuse components effectively.
Working with Layers
Control visibility, protection, and order of layers in Visio diagrams.
Working with Text
Manage and format text elements within Visio shapes.
Font Operations
Manage and manipulate fonts within Visio diagrams for better text presentation.
Text Boxes
Insert and edit text boxes in Visio diagrams to provide additional information.
Print Settings
Configure printing settings for diagrams, including page setup and scaling options.
Working with Print
Print Visio diagrams with customizable options directly from .NET applications.
Diagram Conversions
Convert diagrams between multiple formats such as PDF, HTML, SVG, and others.
Working with Fields
Edit and manage fields within Visio documents.
Working with Window Elements
Control the display and configuration of window elements within Visio diagrams.
User-defined Cells
Create and manage custom properties (user-defined cells) within Visio shapes.
Working with Hyperlinks
Add, update, and remove hyperlinks from Visio shapes and diagrams.
Working with Comments
Add, read, and manage comments within Visio diagrams for better collaboration.
Events Section
Use the Events section in the ShapeSheet to control behavior and automation.
OLE Objects
Insert and manipulate OLE objects within Visio diagrams.
ActiveX Controls
Embed and manage ActiveX controls in Visio diagrams for enhanced interactivity.
Gradient Features
Apply and customize gradient fills, stops, and other gradient-related settings.
Working with Images
Embed, edit, and manipulate images within Visio diagrams.
| Format | Description | Load | Save |
|---|---|---|---|
| VSDX | MS Visio Drawing that uses OPC (Open Packaging Conventions) | ✔️ | ✔️ |
| VDX | Drawing or chart created with Microsoft Visio | ✔️ | ✔️ |
| VSD | Visio Drawing (Vector Graphics File Format) | ✔️ | |
| VSX | Visio Stencil XML file type | ✔️ | ✔️ |
| VTX | XML for Visio (Template File) | ✔️ | ✔️ |
| VSSX | VSSX file that has objects to be included in technical drawings | ✔️ | ✔️ |
| VSTX | MS Visio Drawing Template | ✔️ | ✔️ |
| VSDM | Visio Macro-Enabled Drawing file type | ✔️ | ✔️ |
| VSSM | Stores collection of shapes | ✔️ | ✔️ |
| VSTM | VSTM that contains both Drawing template and macros | ✔️ | ✔️ |
| VDW | Visio Web Drawing File Type | ✔️ | |
| VSS | The Visio Stencil File Type | ✔️ | |
| VST | VST Template File | ✔️ | |
| PDF (Portable Document Format) | ✔️ | ||
| XPS | XPS format | ✔️ | |
| XAML | XAML format | ✔️ | |
| SWF | Adobe Flash File | ✔️ | |
| SVG | Scalable Vector Graphics (An XML-based vector image format) | ✔️ | |
| EMF | Enhanced MetaFile | ✔️ | |
| JPEG | JPEG Format | ✔️ | |
| PNG | PNG Format | ✔️ | |
| BMP | BMP Format | ✔️ | |
| TIFF | Single or Multi-Page TIFF Image | ✔️ | |
| HTML | HTML Format | ✔️ |
2000, XP, Vista, 7, 8/8.1, 10, 2003-2019 Server (x64, x86)
Mac OS X x64 (10.12+)
Linux x64 (6, 7, 8.7+, 9, 14.04, 16.04, 18.04, 27, 42.3+, 12 SP2+)
2003-2019
2.0 - 4.7.2, 4.0_ClientProfile
2.0 (compatible with .NET Core 2.0/2.1)
Install-Package Aspose.Diagram and press Enter.Update-Package Aspose.Diagram to get the latest version.You can execute the below code snippet to see how Aspose.Diagram API performs in your own environment or check the GitHub Repository for other common usage scenarios.
// create a new diagram
var diagram = new Diagram(dataDir + "template.vss");
// add a new rectangle shape
long shapeId = diagram.AddShape(4.25, 5.5, 2, 1, @ "Rectangle", 0);
var shape = diagram.Pages[0].Shapes.GetShape(shapeId);
shape.Text.Value.Add(new Txt(@ "Rectangle text."));
// add a new hexagon shape
shapeId = diagram.AddShape(7.0, 5.5, 2, 2, @ "Hexagon", 0);
shape = diagram.Pages[0].Shapes.GetShape(shapeId);
shape.Text.Value.Add(new Txt(@ "Hexagon text."));
// save the diagram in VDX format
diagram.Save(dir + "output.vdx", SaveFileFormat.VDX);
Aspose.Diagram for .NET allows .NET applications to work with layers of Visio® drawings. The following C# code example shows how to fetch all the layers of a VSDX file:
// load source Visio® diagram
var diagram = new Diagram(dataDir + "Drawing1.vsdx");
// get diagram page
var page = diagram.Pages.GetPage("Page-1");
// iterate through the layers and print properties
foreach(Layer layer in page.PageSheet.Layers) {
Console.WriteLine("Name: " + layer.Name.Value);
Console.WriteLine("Visibility: " + layer.Visible.Value);
Console.WriteLine("Status: " + layer.Status.Value);
}
👁 Docs
👁 API Ref
👁 Examples
👁 Blog
👁 Releases
👁 Support
👁 License
.NET API | Microsoft Visio | Visio File Manipulation | Diagram Conversion | Visio Diagram Management | Shapes and Drawing | Text Management | VBA Project Integration | Themes | OLE and ActiveX | Gradient Features | External Data Sources | Visio File Formats | Print and Export | SolutionXML | User-defined Cells | Diagram API | NuGet Package | Windows, macOS, Linux | .NET Framework | .NET Standard | Visual Studio | Installation | NuGet Installation | Visio Layers | Hyperlinks | Comments | Events
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net6.0-windows7.0 net6.0-windows7.0 is compatible. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net8.0-windows7.0 net8.0-windows7.0 is compatible. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net9.0-windows7.0 net9.0-windows7.0 is compatible. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. net10.0-windows7.0 net10.0-windows7.0 is compatible. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net10 net10 is compatible. net40 net40 is compatible. net403 net403 was computed. net45 net45 was computed. net451 net451 was computed. net452 net452 was computed. net46 net46 was computed. net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 3 NuGet packages that depend on Aspose.Diagram:
| Package | Downloads |
|---|---|
|
Aspose.Total
Aspose.Total for .NET is the most complete package of all .NET file format APIs offered by Aspose. It empowers developers to create, edit, render, print and convert between a wide range of popular document formats within any .NET, C#, ASP.NET and VB.NET applications. |
|
|
SenseNet.Preview.Aspose.PreviewImageGenerators
Aspose Preview image generator classes for the sensenet platform. |
|
|
SenseNet.Preview.Aspose
sensenet Aspose Preview Provider makes it possible to generate and serve preview images using Aspose libraries. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 26.6.0 | 468 | 6/11/2026 |
| 26.5.0 | 3,832 | 5/12/2026 |
| 26.4.0 | 15,274 | 4/14/2026 |
| 26.3.0 | 11,868 | 3/11/2026 |
| 26.2.0 | 14,535 | 2/9/2026 |
| 26.1.0 | 12,387 | 1/9/2026 |
| 25.12.0 | 5,851 | 12/11/2025 |
| 25.11.0 | 26,254 | 11/11/2025 |
| 25.10.0 | 12,224 | 10/14/2025 |
| 25.9.0 | 15,569 | 9/9/2025 |
| 25.8.0 | 9,177 | 8/12/2025 |
| 25.7.0 | 24,542 | 7/10/2025 |
| 25.6.0 | 16,235 | 6/13/2025 |
| 25.5.0 | 29,253 | 5/14/2025 |
| 25.4.0 | 25,896 | 4/14/2025 |
| 25.3.1 | 50,912 | 3/17/2025 |
| 25.2.0 | 42,838 | 2/11/2025 |
| 25.1.0 | 12,111 | 1/13/2025 |
| 24.12.0 | 25,308 | 12/11/2024 |