Aspose.Diagram 24.12.0

dotnet add package Aspose.Diagram --version 24.12.0                
NuGet\Install-Package Aspose.Diagram -Version 24.12.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Aspose.Diagram" Version="24.12.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aspose.Diagram --version 24.12.0                
#r "nuget: Aspose.Diagram, 24.12.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Aspose.Diagram as a Cake Addin
#addin nuget:?package=Aspose.Diagram&version=24.12.0

// Install Aspose.Diagram as a Cake Tool
#tool nuget:?package=Aspose.Diagram&version=24.12.0                

.NET API for Microsoft Visio® File Formats

Version 24.12.0 NuGet .NET

banner


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.

Basic Operations

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.

Diagram Conversion

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.

Diagram Management

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.

Shapes and Drawing

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.

Text and Fonts

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.

Printing and Export

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.

Advanced Features

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.

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 and ActiveX

OLE Objects

Insert and manipulate OLE objects within Visio diagrams.

ActiveX Controls

Embed and manage ActiveX controls in Visio diagrams for enhanced interactivity.

Visual Enhancements

Gradient Features

Apply and customize gradient fills, stops, and other gradient-related settings.

Working with Images

Embed, edit, and manipulate images within Visio diagrams.

Supported File Formats

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 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 ✔️

Supported Operating Systems

Windows

2000, XP, Vista, 7, 8/8.1, 10, 2003-2019 Server (x64, x86)

macOS

Mac OS X x64 (10.12+)

Linux

Linux x64 (6, 7, 8.7+, 9, 14.04, 16.04, 18.04, 27, 42.3+, 12 SP2+)

Supported Development Environments

Microsoft Visual Studio

2003-2019

Supported .NET Framework Versions

.NET Framework

2.0 - 4.7.2, 4.0_ClientProfile

.NET Standard

2.0 (compatible with .NET Core 2.0/2.1)

Installation Steps for Aspose.Diagram for .NET

1. Install via NuGet

  • Open Visual Studio.
  • Go to Tools > Library Package Manager > Package Manager Console.
  • Type: Install-Package Aspose.Diagram and press Enter.

2. Update via Package Manager Console

  • Open Package Manager Console in Visual Studio.
  • Type: Update-Package Aspose.Diagram to get the latest version.

3. Install via GUI

  • Right-click your project in Solution Explorer.
  • Select Manage NuGet Packages, search for Aspose.Diagram, and click Install.

Load a VSS Template to Create a Visio® Diagram with C# Code

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);

Retrieve Layers of a Visio® VSDX Diagram

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 Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net6.0-windows7.0 is compatible.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net8.0-windows7.0 is compatible. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net20 is compatible.  net35 is compatible.  net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

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.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
24.12.0 1,475 12/11/2024
24.11.0 5,083 11/15/2024
24.10.0 7,166 10/14/2024
24.9.0 7,680 9/10/2024
24.8.0 11,381 8/12/2024
24.7.0 13,488 7/12/2024
24.6.0 14,899 6/12/2024
24.5.0 9,042 5/13/2024
24.4.0 35,348 4/9/2024
24.3.0 27,014 3/5/2024
24.2.0 13,468 2/4/2024
24.1.0 15,056 1/8/2024
23.12.0 10,059 12/8/2023
23.11.0 19,360 11/9/2023
23.10.0 13,303 10/11/2023
23.9.0 32,073 9/14/2023
23.8.0 22,553 8/15/2023
23.7.0 25,129 7/12/2023
23.6.0 13,487 6/13/2023
23.5.0 14,821 5/10/2023
23.4.0 10,388 4/12/2023
23.3.0 13,078 3/9/2023
23.2.0 14,136 2/13/2023
23.1.0 28,680 1/10/2023
22.12.0 13,879 12/13/2022
22.11.0 32,021 11/10/2022
22.10.0 24,381 10/11/2022
22.9.0 32,128 9/6/2022
22.8.0 35,750 8/3/2022
22.7.0 14,041 7/5/2022
22.6.0 15,907 6/7/2022
22.5.0 17,029 5/10/2022
22.4.0 12,898 4/12/2022
22.3.0 19,925 3/8/2022
22.2.0 62,712 2/11/2022
22.1.0 17,498 1/10/2022
21.12.0 37,196 12/7/2021
21.11.0 17,023 11/11/2021
21.10.0 10,459 10/12/2021
21.9.0 66,507 9/7/2021
21.8.0 16,301 8/4/2021
21.7.0 19,343 7/6/2021
21.6.0 4,852 6/8/2021
21.5.0 60,302 5/11/2021
21.4.0 13,916 4/12/2021
21.3.1 12,138 3/16/2021
21.3.0 2,073 3/12/2021
21.2.0 48,524 2/2/2021
21.1.0 7,590 1/5/2021
20.12.0 18,477 12/8/2020
20.11.0 18,500 11/3/2020
20.10.0 7,913 10/12/2020
20.9.0 4,431 9/9/2020
20.8.0 4,387 8/11/2020
20.7.0 8,767 7/15/2020
20.6.0 12,310 6/11/2020
20.5.0 15,347 5/12/2020
20.4.0 34,326 4/9/2020
20.3.0 10,402 3/12/2020
20.2.0 10,215 2/13/2020
20.1.0 6,298 1/10/2020
19.12.0 6,996 12/13/2019
19.11.0 5,681 11/14/2019
19.10.0 2,554 10/18/2019
19.9.0 21,152 9/19/2019
19.8.0 24,136 8/7/2019
19.7.0 4,586 7/9/2019
19.6.0 15,336 6/13/2019
19.5.0 4,372 5/16/2019
19.4.0 13,139 4/16/2019
19.3.0 10,561 3/15/2019
19.2.0 10,066 2/19/2019
19.1.0 4,657 1/22/2019
18.12.0 4,371 12/18/2018
18.11.0 6,570 11/19/2018
18.10.0 2,330 10/18/2018
18.9.0 3,797 9/14/2018
18.8.0 4,589 8/8/2018
18.7.0 9,746 7/13/2018
18.6.0 3,120 6/11/2018
18.5.0 4,013 5/17/2018
18.4.0 2,847 4/13/2018
18.3.0 3,591 3/9/2018
18.2.0 5,953 2/7/2018
18.1.0 19,551 1/17/2018
17.12.0 3,391 12/15/2017
17.11.0 2,258 11/20/2017
17.10.0 2,858 10/23/2017
17.9.0 2,188 9/20/2017
17.8.0 3,213 8/22/2017
17.7.0 2,104 7/18/2017
17.6.0 2,247 6/20/2017
17.5.0 2,137 5/19/2017
17.4.0 4,958 4/18/2017
17.3.0 2,635 3/17/2017
17.2.0 2,441 2/17/2017
17.1.0 2,964 1/13/2017
16.12.0 2,586 12/16/2016
16.11.1 2,160 11/14/2016
16.11.0 2,323 11/11/2016
16.10.0 2,481 10/14/2016
6.8.0 2,326 9/9/2016
6.7.0 2,424 8/8/2016
6.6.0 6,726 7/12/2016
6.5.0 5,129 6/14/2016
6.4.0 2,830 5/20/2016
6.3.0 16,988 4/22/2016
6.2.0 2,090 3/31/2016
6.1.0.1 2,162 3/1/2016
6.1.0 2,357 2/26/2016
6.0.0 6,071 1/19/2016
5.9.0 2,607 12/18/2015
5.8.0 2,754 11/24/2015
5.7.0 9,519 10/16/2015
5.6.0 2,500 9/9/2015
5.5.0 3,298 8/6/2015
5.4.0 2,295 7/1/2015
5.3.0 2,627 5/22/2015
5.2.0 2,464 4/20/2015
5.1.0 3,110 2/28/2015
5.0.0 2,428 1/16/2015
4.6.0 2,636 12/4/2014
4.5.0 2,571 10/22/2014
4.4.0 2,510 9/12/2014
4.3.0 2,529 8/8/2014
4.2.0 2,481 7/4/2014
4.1.0 2,439 5/27/2014
4.0.0 2,178 5/14/2014
3.9.0 2,488 4/25/2014
3.8.0 2,779 3/27/2014
3.7.0 2,735 2/28/2014
3.6.0.1 2,315 12/20/2013
3.6.0 2,103 12/12/2013
3.5.0 4,929 9/26/2013
3.4.0 2,229 8/20/2013
3.3.0 2,389 6/4/2013
3.2.0 2,446 5/16/2013
3.1.0 2,269 4/3/2013
3.0.0 2,383 2/20/2013
2.9.0 2,355 12/17/2012
2.8.0 2,554 11/12/2012
2.7.0 2,498 10/2/2012
2.6.0 2,332 8/28/2012
2.5.0 2,364 8/13/2012
2.4.0 2,331 7/13/2012
2.3.0 2,366 6/4/2012
2.2.0 2,389 4/28/2012
2.1.0 2,454 4/9/2012
2.0.0 2,379 3/8/2012
1.9.0.1 2,345 2/16/2012
1.9.0 2,354 2/6/2012
1.8.1 2,355 1/24/2012
1.8.0 2,828 1/13/2012