Aspose.Diagram
20.1.0
Aspose.Diagram is a class library for working with Microsoft Visio files. It allows developers to create new diagrams and work with VSD, VSDX, VSTX, VSSX, VSS, VST, VSX, VTX, VDW and VDX files on ASP.NET web applications, web services and Windows applications. It allows you to open files and manipulate the elements of the diagram, from lines and fills, to more complex elements, and then export to VDX, VSX,VSDX,VSSX,VSTX, VTX, XPS, HTML, SVG, SWF, XAML, image or PDF formats.
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.
See the version list below for details.
Install-Package Aspose.Diagram -Version 20.1.0
dotnet add package Aspose.Diagram --version 20.1.0
<PackageReference Include="Aspose.Diagram" Version="20.1.0" />
paket add Aspose.Diagram --version 20.1.0
#r "nuget: Aspose.Diagram, 20.1.0"
// Install Aspose.Diagram as a Cake Addin
#addin nuget:?package=Aspose.Diagram&version=20.1.0
// Install Aspose.Diagram as a Cake Tool
#tool nuget:?package=Aspose.Diagram&version=20.1.0
Aspose.Diagram for .NET API is a comprehensive solution for all Microsoft Visio® manipulation requirements while allowing the .NET applications to read, write, export and process Microsoft Visio diagrams. It supports all Visio objects such as shapes, pages, images, shape masters, Visio stencils, text, layers, header, footers, user-defined cells, hyperlinks, file protection, font operations, printing, geometries, SQL Server data sources, 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.
Visio File Processing Features
- Create Microsoft Visio diagrams from scratch via API.
- Read or write Microsoft Visio drawings with Automation.
- Export Visio diagrams to various popular formats including PDF, images, HTML and more.
- Print Visio diagrams on physical printer or on a server using XpsPrint API.
- Access Visio diagram properties.
- Protect Visio diagrams via applying locks on various levels.
- Manipulate the embedded OLE objects in the Visio diagrams.
- Insert ActiveX control within the Visio file.
- Customize the gradient of a Visio shape.
Read & Write Visio Formats
Microsoft Visio: VSDX, VSX, VTX, VDX, VSSX, VSTX, VSDM, VSSM, VSTM
Save Visio Diagrams As
Fixed Layout: PDF, XPS
Images: JPEG, PNG, BMP, TIFF, SVG, EMF
Web: HTML
Other: XAML, SWF
Read Visio Formats
Microsoft Visio: VDW, VSD, 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.
Getting Started with Aspose.Diagram for .NET
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#
You can execute 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 | Documentation | API Reference | Code Examples | Blog | Free Support | Temporary License
Aspose.Diagram for .NET API is a comprehensive solution for all Microsoft Visio® manipulation requirements while allowing the .NET applications to read, write, export and process Microsoft Visio diagrams. It supports all Visio objects such as shapes, pages, images, shape masters, Visio stencils, text, layers, header, footers, user-defined cells, hyperlinks, file protection, font operations, printing, geometries, SQL Server data sources, 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.
Visio File Processing Features
- Create Microsoft Visio diagrams from scratch via API.
- Read or write Microsoft Visio drawings with Automation.
- Export Visio diagrams to various popular formats including PDF, images, HTML and more.
- Print Visio diagrams on physical printer or on a server using XpsPrint API.
- Access Visio diagram properties.
- Protect Visio diagrams via applying locks on various levels.
- Manipulate the embedded OLE objects in the Visio diagrams.
- Insert ActiveX control within the Visio file.
- Customize the gradient of a Visio shape.
Read & Write Visio Formats
Microsoft Visio: VSDX, VSX, VTX, VDX, VSSX, VSTX, VSDM, VSSM, VSTM
Save Visio Diagrams As
Fixed Layout: PDF, XPS
Images: JPEG, PNG, BMP, TIFF, SVG, EMF
Web: HTML
Other: XAML, SWF
Read Visio Formats
Microsoft Visio: VDW, VSD, 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.
Getting Started with Aspose.Diagram for .NET
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#
You can execute 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 | Documentation | API Reference | Code Examples | Blog | Free Support | Temporary License
Release Notes
https://docs.aspose.com/display/diagramnet/Aspose.Diagram+for+.NET+20.1+Release+Notes
Dependencies
This package has no dependencies.
Used By
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.
|
|
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.
|
|
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.
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.
|
GitHub repositories
This package is not used by any popular GitHub repositories.
Version History
Version | Downloads | Last updated |
---|---|---|
21.4.0 | 77 | 4/12/2021 |
21.3.1 | 1,668 | 3/16/2021 |
21.3.0 | 278 | 3/12/2021 |
21.2.0 | 4,575 | 2/2/2021 |
21.1.0 | 2,308 | 1/5/2021 |
20.12.0 | 1,865 | 12/8/2020 |
20.11.0 | 5,113 | 11/3/2020 |
20.10.0 | 1,733 | 10/12/2020 |
20.9.0 | 1,749 | 9/9/2020 |
20.8.0 | 2,344 | 8/11/2020 |
20.7.0 | 5,035 | 7/15/2020 |
20.6.0 | 3,048 | 6/11/2020 |
20.5.0 | 3,054 | 5/12/2020 |
20.4.0 | 4,465 | 4/9/2020 |
20.3.0 | 3,301 | 3/12/2020 |
20.2.0 | 2,355 | 2/13/2020 |
20.1.0 | 3,261 | 1/10/2020 |
19.12.0 | 3,056 | 12/13/2019 |
19.11.0 | 3,719 | 11/14/2019 |
19.10.0 | 1,013 | 10/18/2019 |
19.9.0 | 7,917 | 9/19/2019 |
19.8.0 | 21,734 | 8/7/2019 |
19.7.0 | 2,959 | 7/9/2019 |
19.6.0 | 3,459 | 6/13/2019 |
19.5.0 | 2,885 | 5/16/2019 |
19.4.0 | 10,250 | 4/16/2019 |
19.3.0 | 1,992 | 3/15/2019 |
19.2.0 | 5,241 | 2/19/2019 |
19.1.0 | 1,906 | 1/22/2019 |
18.12.0 | 2,898 | 12/18/2018 |
18.11.0 | 1,226 | 11/19/2018 |
18.10.0 | 1,043 | 10/18/2018 |
18.9.0 | 2,001 | 9/14/2018 |
18.8.0 | 2,942 | 8/8/2018 |
18.7.0 | 5,448 | 7/13/2018 |
18.6.0 | 1,633 | 6/11/2018 |
18.5.0 | 2,072 | 5/17/2018 |
18.4.0 | 1,582 | 4/13/2018 |
18.3.0 | 2,334 | 3/9/2018 |
18.2.0 | 3,147 | 2/7/2018 |
18.1.0 | 6,325 | 1/17/2018 |
17.12.0 | 1,974 | 12/15/2017 |
17.11.0 | 1,035 | 11/20/2017 |
17.10.0 | 1,615 | 10/23/2017 |
17.9.0 | 985 | 9/20/2017 |
17.8.0 | 1,943 | 8/22/2017 |
17.7.0 | 849 | 7/18/2017 |
17.6.0 | 964 | 6/20/2017 |
17.5.0 | 909 | 5/19/2017 |
17.4.0 | 3,714 | 4/18/2017 |
17.3.0 | 1,377 | 3/17/2017 |
17.2.0 | 1,027 | 2/17/2017 |
17.1.0 | 1,734 | 1/13/2017 |
16.12.0 | 1,190 | 12/16/2016 |
16.11.1 | 901 | 11/14/2016 |
16.11.0 | 956 | 11/11/2016 |
16.10.0 | 939 | 10/14/2016 |
6.8.0 | 1,072 | 9/9/2016 |
6.7.0 | 1,015 | 8/8/2016 |
6.6.0 | 5,285 | 7/12/2016 |
6.5.0 | 3,762 | 6/14/2016 |
6.4.0 | 1,557 | 5/20/2016 |
6.3.0 | 9,144 | 4/22/2016 |
6.2.0 | 877 | 3/31/2016 |
6.1.0.1 | 884 | 3/1/2016 |
6.1.0 | 726 | 2/26/2016 |
6.0.0 | 2,780 | 1/19/2016 |
5.9.0 | 1,366 | 12/18/2015 |
5.8.0 | 1,385 | 11/24/2015 |
5.7.0 | 8,282 | 10/16/2015 |
5.6.0 | 1,219 | 9/9/2015 |
5.5.0 | 1,500 | 8/6/2015 |
5.4.0 | 983 | 7/1/2015 |
5.3.0 | 1,258 | 5/22/2015 |
5.2.0 | 1,056 | 4/20/2015 |
5.1.0 | 1,814 | 2/28/2015 |
5.0.0 | 1,125 | 1/16/2015 |
4.6.0 | 1,183 | 12/4/2014 |
4.5.0 | 1,224 | 10/22/2014 |
4.4.0 | 1,308 | 9/12/2014 |
4.3.0 | 1,298 | 8/8/2014 |
4.2.0 | 1,241 | 7/4/2014 |
4.1.0 | 1,179 | 5/27/2014 |
4.0.0 | 928 | 5/14/2014 |
3.9.0 | 997 | 4/25/2014 |
3.8.0 | 1,359 | 3/27/2014 |
3.7.0 | 1,321 | 2/28/2014 |
3.6.0.1 | 1,103 | 12/20/2013 |
3.6.0 | 850 | 12/12/2013 |
3.5.0 | 3,678 | 9/26/2013 |
3.4.0 | 941 | 8/20/2013 |
3.3.0 | 1,064 | 6/4/2013 |
3.2.0 | 1,207 | 5/16/2013 |
3.1.0 | 1,034 | 4/3/2013 |
3.0.0 | 1,055 | 2/20/2013 |
2.9.0 | 1,009 | 12/17/2012 |
2.8.0 | 1,066 | 11/12/2012 |
2.7.0 | 1,177 | 10/2/2012 |
2.6.0 | 1,069 | 8/28/2012 |
2.5.0 | 1,005 | 8/13/2012 |
2.4.0 | 1,052 | 7/13/2012 |
2.3.0 | 1,109 | 6/4/2012 |
2.2.0 | 1,059 | 4/28/2012 |
2.1.0 | 1,095 | 4/9/2012 |
2.0.0 | 1,063 | 3/8/2012 |
1.9.0.1 | 1,006 | 2/16/2012 |
1.9.0 | 1,030 | 2/6/2012 |
1.8.1 | 1,034 | 1/24/2012 |
1.8.0 | 1,082 | 1/13/2012 |