Aspose.Diagram 20.10.0

Aspose.Diagram for .NET API is a solution for Microsoft Visio file manipulation requirements
       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.

Install-Package Aspose.Diagram -Version 20.10.0
dotnet add package Aspose.Diagram --version 20.10.0
<PackageReference Include="Aspose.Diagram" Version="20.10.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aspose.Diagram --version 20.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

Nuget Nuget

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.

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.

New Features & Enhancements Nuget

  • Added IsExportScaleInMatrix in SVGSaveOptions that helps you define whether the export scale in matrix or not.

Please visit Aspose.Diagram for .NET 20.10 Release Notes for the detailed notes.

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

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

.NET API for Microsoft Visio® File Formats

Nuget Nuget

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.

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.

New Features & Enhancements Nuget

  • Added IsExportScaleInMatrix in SVGSaveOptions that helps you define whether the export scale in matrix or not.

Please visit Aspose.Diagram for .NET 20.10 Release Notes for the detailed notes.

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

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

Release Notes

https://docs.aspose.com/diagram/net/aspose-diagram-for-net-20-10-release-notes/

Dependencies

This package has no dependencies.

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
sensenet Aspose Preview Provider makes it possible to generate and serve preview images using Aspose libraries.
SenseNet.Preview.Aspose.PreviewImageGenerators
Aspose Preview image generator classes for the sensenet platform.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
20.10.0 313 10/12/2020
20.9.0 1,157 9/9/2020
20.8.0 1,441 8/11/2020
20.7.0 2,321 7/15/2020
20.6.0 1,574 6/11/2020
20.5.0 1,767 5/12/2020
20.4.0 2,139 4/9/2020
20.3.0 2,315 3/12/2020
20.2.0 1,647 2/13/2020
20.1.0 1,329 1/10/2020
19.12.0 2,614 12/13/2019
19.11.0 3,410 11/14/2019
19.10.0 886 10/18/2019
19.9.0 5,557 9/19/2019
19.8.0 21,018 8/7/2019
19.7.0 2,615 7/9/2019
19.6.0 2,763 6/13/2019
19.5.0 2,770 5/16/2019
19.4.0 9,054 4/16/2019
19.3.0 1,831 3/15/2019
19.2.0 4,041 2/19/2019
19.1.0 1,711 1/22/2019
18.12.0 2,684 12/18/2018
18.11.0 962 11/19/2018
18.10.0 875 10/18/2018
18.9.0 1,796 9/14/2018
18.8.0 2,531 8/8/2018
18.7.0 4,549 7/13/2018
18.6.0 1,441 6/11/2018
18.5.0 1,855 5/17/2018
18.4.0 1,404 4/13/2018
18.3.0 2,153 3/9/2018
18.2.0 1,636 2/7/2018
18.1.0 3,658 1/17/2018
17.12.0 1,789 12/15/2017
17.11.0 828 11/20/2017
17.10.0 1,446 10/23/2017
17.9.0 804 9/20/2017
17.8.0 1,680 8/22/2017
17.7.0 681 7/18/2017
17.6.0 791 6/20/2017
17.5.0 728 5/19/2017
17.4.0 3,542 4/18/2017
17.3.0 1,198 3/17/2017
17.2.0 846 2/17/2017
17.1.0 1,564 1/13/2017
16.12.0 1,018 12/16/2016
16.11.1 736 11/14/2016
16.11.0 635 11/11/2016
16.10.0 763 10/14/2016
6.8.0 900 9/9/2016
6.7.0 786 8/8/2016
6.6.0 5,096 7/12/2016
6.5.0 3,233 6/14/2016
6.4.0 1,388 5/20/2016
6.3.0 7,976 4/22/2016
6.2.0 704 3/31/2016
6.1.0.1 721 3/1/2016
6.1.0 555 2/26/2016
6.0.0 2,235 1/19/2016
5.9.0 1,190 12/18/2015
5.8.0 1,214 11/24/2015
5.7.0 8,119 10/16/2015
5.6.0 1,055 9/9/2015
5.5.0 1,303 8/6/2015
5.4.0 825 7/1/2015
5.3.0 1,071 5/22/2015
5.2.0 882 4/20/2015
5.1.0 1,645 2/28/2015
5.0.0 944 1/16/2015
4.6.0 1,000 12/4/2014
4.5.0 1,043 10/22/2014
4.4.0 1,134 9/12/2014
4.3.0 1,128 8/8/2014
4.2.0 1,061 7/4/2014
4.1.0 997 5/27/2014
4.0.0 756 5/14/2014
3.9.0 820 4/25/2014
3.8.0 1,179 3/27/2014
3.7.0 1,107 2/28/2014
3.6.0.1 923 12/20/2013
3.6.0 681 12/12/2013
3.5.0 3,497 9/26/2013
3.4.0 749 8/20/2013
3.3.0 876 6/4/2013
3.2.0 1,023 5/16/2013
3.1.0 850 4/3/2013
3.0.0 873 2/20/2013
2.9.0 831 12/17/2012
2.8.0 879 11/12/2012
2.7.0 997 10/2/2012
2.6.0 885 8/28/2012
2.5.0 820 8/13/2012
2.4.0 851 7/13/2012
2.3.0 923 6/4/2012
2.2.0 873 4/28/2012
2.1.0 900 4/9/2012
2.0.0 879 3/8/2012
1.9.0.1 833 2/16/2012
1.9.0 857 2/6/2012
1.8.1 850 1/24/2012
1.8.0 901 1/13/2012