Aspose.Diagram 21.10.0

.NET Standard 2.0 .NET Framework 2.0
There is a newer version of this package available.
See the version list below for details.
Install-Package Aspose.Diagram -Version 21.10.0
dotnet add package Aspose.Diagram --version 21.10.0
<PackageReference Include="Aspose.Diagram" Version="21.10.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aspose.Diagram --version 21.10.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Aspose.Diagram, 21.10.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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=21.10.0

// Install Aspose.Diagram as a Cake Tool
#tool nuget:?package=Aspose.Diagram&version=21.10.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

.NET API for Microsoft Visio® File Formats

Version 21.10 Nuget

Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License

Aspose.Diagram for .NET API is a solution for Microsoft Visio® file manipulation requirements. It allows the .NET applications to read, write, export, and process Microsoft Visio® diagrams while supporting all Visio® objects & properties including shapes, pages, images, shape masters, stencils, text, layers, header, footers, user-defined cells, hyperlinks, file protection, geometries, text boxes, and comments.

Aspose.Diagram for .NET can also be used to apply protection to the Microsoft Visio® drawings by locking backgrounds, stencils (master) as well as shapes and styles to avoid any accidental amendments.

What is Aspose.Diagram for .NET?

Aspose.Diagram for .NET on premise API enables your .NET applications easily interact with the Microsoft Visio Object Model. This empowers your applications to create, read, write, export, print, and convert VSD, VSS, VDW, VST and other Visio file formats to PDF, XPS, SVG, HTML, PNG, JPEG, EMF, TIFF, SWF, XAML, etc, without installing Microsoft Visio or any other 3rd party software.

Aspose.Diagram for .NET is written entirely in C# and contains only managed code. Aspose.Diagram.dll is CLS compliant. Any type of 32-bit or 64-bit .NET application, including, ASP.NET, Web Services and WinForms can be developed using Aspose.Diagram for .NET classes.

Aspose.Diagram for .NET API supports all Visio objects & properties including shapes, pages, images, shape masters, stencils, text, layers, header, footers, user-defined cells, hyperlinks, file protection, geometries, text boxes, and comments. Developers can also apply protection to the Microsoft Visio drawings by locking backgrounds, stencils (master) as well as shapes and styles to avoid any accidental amendments.

Visio® File Processing Features

  • Create Microsoft Visio® diagrams from scratch via API.
  • Read or write Microsoft Visio® drawings.
  • Export Visio® diagrams to various popular formats including PDF, images, HTML and more.
  • Print Visio® diagrams on a physical or virtual printer.
  • Access Visio® diagram properties for manipulation or just inspection.
  • Protect Visio® diagrams via applying locks on various levels.
  • Manipulate the embedded OLE objects in the Visio® diagrams.

Supported Read & Write Visio® Formats

Microsoft Visio®: VSDX, VDX, VSX, VTX, VSSX, VSTX, VSDM, VSSM, VSTM

Save Visio® Diagrams As

Fixed Layout: PDF, XPS
Vector: SVG
Metafile: EMF
Image: JPEG, PNG, BMP, TIFF
Markup: HTML, XAML
Other: SWF

Supported Read Visio® Formats

Microsoft Visio®: VSD, VDW, VSS, VST

Platform Independence

You can use Aspose.Diagram for .NET to build any type of a 32-bit or 64-bit .NET application including ASP.NET, WCF, WinForms, UWP, .NET Standard, .NET Core etc. You can also use Aspose.Diagram for .NET to build applications with Mono.

Get Started

Are you ready to give Aspose.Diagram for .NET a try? Simply execute Install-Package Aspose.Diagram from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.Diagram for .NET and want to upgrade the version, please execute Update-Package Aspose.Diagram to get the latest version.

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

Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net20 net35 net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 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.

Conholdate.Total

Conholdate.Total for .NET is a complete package to work with a large number of file formats from Microsoft Word, Excel, PowerPoint, Outlook, Project, Visio, Adobe Acrobat, Illustrator, Photoshop, AutoCAD, OpenOffice and many more. Conholdate.Total for .NET allows you to use any API released under Aspose and GroupDocs for .NET in order to create, convert, read, edit, update and print popular document formats. Moreover, you may view, annotate, watermark, assemble, classify, search, redact, parse, merge and compare documents without needing to install the native applications. It helps you in file format manipulation and document automation via simple API. Conholdate.Total for .NET also includes specialized APIs to read and create barcodes, extract text from images using OCR as well as extract human marked data from questioners, surveys, quizzes, MCQ papers and feedback forms.

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
22.6.0 1,448 6/7/2022
22.5.0 3,265 5/10/2022
22.4.0 4,788 4/12/2022
22.3.0 7,607 3/8/2022
22.2.0 9,493 2/11/2022
22.1.0 4,475 1/10/2022
21.12.0 8,781 12/7/2021
21.11.0 5,661 11/11/2021
21.10.0 3,037 10/12/2021
21.9.0 27,517 9/7/2021
21.8.0 5,385 8/4/2021
21.7.0 4,309 7/6/2021
21.6.0 3,168 6/8/2021
21.5.0 21,005 5/11/2021
21.4.0 7,294 4/12/2021
21.3.1 4,919 3/16/2021
21.3.0 689 3/12/2021
21.2.0 33,784 2/2/2021
21.1.0 4,456 1/5/2021
20.12.0 4,942 12/8/2020
20.11.0 11,420 11/3/2020
20.10.0 6,166 10/12/2020
20.9.0 2,872 9/9/2020
20.8.0 3,051 8/11/2020
20.7.0 5,735 7/15/2020
20.6.0 3,889 6/11/2020
20.5.0 10,442 5/12/2020
20.4.0 14,547 4/9/2020
20.3.0 6,198 3/12/2020
20.2.0 6,822 2/13/2020
20.1.0 4,649 1/10/2020
19.12.0 4,011 12/13/2019
19.11.0 4,260 11/14/2019
19.10.0 1,230 10/18/2019
19.9.0 14,905 9/19/2019
19.8.0 22,575 8/7/2019
19.7.0 3,508 7/9/2019
19.6.0 7,235 6/13/2019
19.5.0 3,176 5/16/2019
19.4.0 11,215 4/16/2019
19.3.0 3,005 3/15/2019
19.2.0 7,502 2/19/2019
19.1.0 2,324 1/22/2019
18.12.0 3,093 12/18/2018
18.11.0 2,871 11/19/2018
18.10.0 1,254 10/18/2018
18.9.0 2,264 9/14/2018
18.8.0 3,424 8/8/2018
18.7.0 7,221 7/13/2018
18.6.0 1,973 6/11/2018
18.5.0 2,368 5/17/2018
18.4.0 1,841 4/13/2018
18.3.0 2,586 3/9/2018
18.2.0 4,070 2/7/2018
18.1.0 10,714 1/17/2018
17.12.0 2,280 12/15/2017
17.11.0 1,265 11/20/2017
17.10.0 1,821 10/23/2017
17.9.0 1,198 9/20/2017
17.8.0 2,190 8/22/2017
17.7.0 1,071 7/18/2017
17.6.0 1,194 6/20/2017
17.5.0 1,128 5/19/2017
17.4.0 3,954 4/18/2017
17.3.0 1,599 3/17/2017
17.2.0 1,308 2/17/2017
17.1.0 1,977 1/13/2017
16.12.0 1,428 12/16/2016
16.11.1 1,136 11/14/2016
16.11.0 1,224 11/11/2016
16.10.0 1,337 10/14/2016
6.8.0 1,294 9/9/2016
6.7.0 1,445 8/8/2016
6.6.0 5,593 7/12/2016
6.5.0 4,143 6/14/2016
6.4.0 1,821 5/20/2016
6.3.0 12,791 4/22/2016
6.2.0 1,093 3/31/2016
6.1.0.1 1,169 3/1/2016
6.1.0 1,308 2/26/2016
6.0.0 3,977 1/19/2016
5.9.0 1,583 12/18/2015
5.8.0 1,775 11/24/2015
5.7.0 8,504 10/16/2015
5.6.0 1,488 9/9/2015
5.5.0 2,107 8/6/2015
5.4.0 1,217 7/1/2015
5.3.0 1,536 5/22/2015
5.2.0 1,404 4/20/2015
5.1.0 2,059 2/28/2015
5.0.0 1,401 1/16/2015
4.6.0 1,561 12/4/2014
4.5.0 1,515 10/22/2014
4.4.0 1,530 9/12/2014
4.3.0 1,535 8/8/2014
4.2.0 1,486 7/4/2014
4.1.0 1,419 5/27/2014
4.0.0 1,165 5/14/2014
3.9.0 1,391 4/25/2014
3.8.0 1,709 3/27/2014
3.7.0 1,716 2/28/2014
3.6.0.1 1,348 12/20/2013
3.6.0 1,069 12/12/2013
3.5.0 3,918 9/26/2013
3.4.0 1,200 8/20/2013
3.3.0 1,363 6/4/2013
3.2.0 1,461 5/16/2013
3.1.0 1,274 4/3/2013
3.0.0 1,315 2/20/2013
2.9.0 1,267 12/17/2012
2.8.0 1,510 11/12/2012
2.7.0 1,494 10/2/2012
2.6.0 1,345 8/28/2012
2.5.0 1,292 8/13/2012
2.4.0 1,308 7/13/2012
2.3.0 1,369 6/4/2012
2.2.0 1,350 4/28/2012
2.1.0 1,367 4/9/2012
2.0.0 1,316 3/8/2012
1.9.0.1 1,301 2/16/2012
1.9.0 1,290 2/6/2012
1.8.1 1,300 1/24/2012
1.8.0 1,386 1/13/2012