Aspose.Diagram
24.9.0
See the version list below for details.
dotnet add package Aspose.Diagram --version 24.9.0
NuGet\Install-Package Aspose.Diagram -Version 24.9.0
<PackageReference Include="Aspose.Diagram" Version="24.9.0" />
paket add Aspose.Diagram --version 24.9.0
#r "nuget: Aspose.Diagram, 24.9.0"
// Install Aspose.Diagram as a Cake Addin #addin nuget:?package=Aspose.Diagram&version=24.9.0 // Install Aspose.Diagram as a Cake Tool #tool nuget:?package=Aspose.Diagram&version=24.9.0
.NET API for Microsoft Visio® File Formats
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.
What's New in Aspose.Diagram for .NET v.24.9.0
The Aspose.Diagram for .NET 24.9 release includes new features, improvements, and bug fixes to enhance diagram management and rendering in .NET applications. Key updates are as follows:
New Features
- Save Diagrams as VSD (DIAGRAMNET-50017):
Now you can save diagrams in the MS Visio VSD binary format using theSaveFileFormat.Vsd
option.
Enhancements
- Improved SVG Export (DIAGRAMNET-53509):
Modified theQuoteChar
to a double quote instead of a single quote for better SVG file compatibility.
Bug Fixes
Shape Parts Missing in SVG (DIAGRAMNET-53516):
Fixed an issue where parts of shapes, such as connections or text, were missing when exporting grouped shapes to SVG.Connector Arrowhead Misplacement (DIAGRAMNET-53517):
Corrected the placement of connector arrowheads during Visio to SVG export.PDF Export Issue (DIAGRAMNET-53530):
Resolved a problem where background text was lost when saving diagrams as PDF.
For a complete list of all new features, enhancements, and bug fixes introduced in this release, please visit the Aspose.Diagram for .NET 24.9 Release Notes.
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 | Versions 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. |
-
.NETFramework 2.0
- No dependencies.
-
.NETFramework 3.5
- No dependencies.
-
.NETFramework 4.0
- No dependencies.
-
.NETStandard 2.0
- System.Drawing.Common (>= 4.7.0)
- System.Text.Encoding.CodePages (>= 4.7.0)
-
net6.0
- Aspose.Drawing.Common (>= 23.7.0)
- System.Text.Encoding.CodePages (>= 4.7.0)
-
net6.0-windows7.0
- System.Drawing.Common (>= 6.0.0)
- System.Text.Encoding.CodePages (>= 4.7.0)
-
net8.0
- Aspose.Drawing.Common (>= 23.7.0)
- System.Text.Encoding.CodePages (>= 4.7.0)
-
net8.0-windows7.0
- System.Drawing.Common (>= 6.0.0)
- System.Text.Encoding.CodePages (>= 4.7.0)
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.10.0 | 3,717 | 10/14/2024 |
24.9.0 | 5,960 | 9/10/2024 |
24.8.0 | 8,732 | 8/12/2024 |
24.7.0 | 9,355 | 7/12/2024 |
24.6.0 | 12,079 | 6/12/2024 |
24.5.0 | 8,391 | 5/13/2024 |
24.4.0 | 29,247 | 4/9/2024 |
24.3.0 | 23,256 | 3/5/2024 |
24.2.0 | 12,875 | 2/4/2024 |
24.1.0 | 14,323 | 1/8/2024 |
23.12.0 | 9,558 | 12/8/2023 |
23.11.0 | 17,864 | 11/9/2023 |
23.10.0 | 12,635 | 10/11/2023 |
23.9.0 | 31,565 | 9/14/2023 |
23.8.0 | 22,153 | 8/15/2023 |
23.7.0 | 24,042 | 7/12/2023 |
23.6.0 | 13,026 | 6/13/2023 |
23.5.0 | 13,811 | 5/10/2023 |
23.4.0 | 10,150 | 4/12/2023 |
23.3.0 | 12,731 | 3/9/2023 |
23.2.0 | 13,847 | 2/13/2023 |
23.1.0 | 26,818 | 1/10/2023 |
22.12.0 | 13,103 | 12/13/2022 |
22.11.0 | 30,191 | 11/10/2022 |
22.10.0 | 23,811 | 10/11/2022 |
22.9.0 | 30,668 | 9/6/2022 |
22.8.0 | 35,052 | 8/3/2022 |
22.7.0 | 13,898 | 7/5/2022 |
22.6.0 | 15,527 | 6/7/2022 |
22.5.0 | 16,534 | 5/10/2022 |
22.4.0 | 12,611 | 4/12/2022 |
22.3.0 | 19,806 | 3/8/2022 |
22.2.0 | 60,452 | 2/11/2022 |
22.1.0 | 17,186 | 1/10/2022 |
21.12.0 | 37,144 | 12/7/2021 |
21.11.0 | 16,325 | 11/11/2021 |
21.10.0 | 10,317 | 10/12/2021 |
21.9.0 | 66,317 | 9/7/2021 |
21.8.0 | 16,065 | 8/4/2021 |
21.7.0 | 19,016 | 7/6/2021 |
21.6.0 | 4,842 | 6/8/2021 |
21.5.0 | 59,039 | 5/11/2021 |
21.4.0 | 13,764 | 4/12/2021 |
21.3.1 | 11,987 | 3/16/2021 |
21.3.0 | 2,055 | 3/12/2021 |
21.2.0 | 48,027 | 2/2/2021 |
21.1.0 | 7,503 | 1/5/2021 |
20.12.0 | 17,723 | 12/8/2020 |
20.11.0 | 18,342 | 11/3/2020 |
20.10.0 | 7,889 | 10/12/2020 |
20.9.0 | 4,418 | 9/9/2020 |
20.8.0 | 4,376 | 8/11/2020 |
20.7.0 | 8,732 | 7/15/2020 |
20.6.0 | 11,972 | 6/11/2020 |
20.5.0 | 15,330 | 5/12/2020 |
20.4.0 | 33,850 | 4/9/2020 |
20.3.0 | 10,334 | 3/12/2020 |
20.2.0 | 10,124 | 2/13/2020 |
20.1.0 | 6,287 | 1/10/2020 |
19.12.0 | 6,926 | 12/13/2019 |
19.11.0 | 5,649 | 11/14/2019 |
19.10.0 | 2,536 | 10/18/2019 |
19.9.0 | 21,025 | 9/19/2019 |
19.8.0 | 24,114 | 8/7/2019 |
19.7.0 | 4,572 | 7/9/2019 |
19.6.0 | 14,891 | 6/13/2019 |
19.5.0 | 4,342 | 5/16/2019 |
19.4.0 | 13,126 | 4/16/2019 |
19.3.0 | 10,384 | 3/15/2019 |
19.2.0 | 10,034 | 2/19/2019 |
19.1.0 | 4,513 | 1/22/2019 |
18.12.0 | 4,333 | 12/18/2018 |
18.11.0 | 6,435 | 11/19/2018 |
18.10.0 | 2,311 | 10/18/2018 |
18.9.0 | 3,738 | 9/14/2018 |
18.8.0 | 4,567 | 8/8/2018 |
18.7.0 | 9,711 | 7/13/2018 |
18.6.0 | 3,098 | 6/11/2018 |
18.5.0 | 3,941 | 5/17/2018 |
18.4.0 | 2,834 | 4/13/2018 |
18.3.0 | 3,579 | 3/9/2018 |
18.2.0 | 5,917 | 2/7/2018 |
18.1.0 | 19,251 | 1/17/2018 |
17.12.0 | 3,373 | 12/15/2017 |
17.11.0 | 2,243 | 11/20/2017 |
17.10.0 | 2,844 | 10/23/2017 |
17.9.0 | 2,173 | 9/20/2017 |
17.8.0 | 3,200 | 8/22/2017 |
17.7.0 | 2,086 | 7/18/2017 |
17.6.0 | 2,233 | 6/20/2017 |
17.5.0 | 2,121 | 5/19/2017 |
17.4.0 | 4,943 | 4/18/2017 |
17.3.0 | 2,619 | 3/17/2017 |
17.2.0 | 2,422 | 2/17/2017 |
17.1.0 | 2,945 | 1/13/2017 |
16.12.0 | 2,571 | 12/16/2016 |
16.11.1 | 2,146 | 11/14/2016 |
16.11.0 | 2,309 | 11/11/2016 |
16.10.0 | 2,457 | 10/14/2016 |
6.8.0 | 2,292 | 9/9/2016 |
6.7.0 | 2,412 | 8/8/2016 |
6.6.0 | 6,715 | 7/12/2016 |
6.5.0 | 5,115 | 6/14/2016 |
6.4.0 | 2,816 | 5/20/2016 |
6.3.0 | 16,975 | 4/22/2016 |
6.2.0 | 2,076 | 3/31/2016 |
6.1.0.1 | 2,147 | 3/1/2016 |
6.1.0 | 2,325 | 2/26/2016 |
6.0.0 | 6,048 | 1/19/2016 |
5.9.0 | 2,590 | 12/18/2015 |
5.8.0 | 2,740 | 11/24/2015 |
5.7.0 | 9,506 | 10/16/2015 |
5.6.0 | 2,473 | 9/9/2015 |
5.5.0 | 3,275 | 8/6/2015 |
5.4.0 | 2,281 | 7/1/2015 |
5.3.0 | 2,611 | 5/22/2015 |
5.2.0 | 2,449 | 4/20/2015 |
5.1.0 | 3,084 | 2/28/2015 |
5.0.0 | 2,413 | 1/16/2015 |
4.6.0 | 2,623 | 12/4/2014 |
4.5.0 | 2,543 | 10/22/2014 |
4.4.0 | 2,497 | 9/12/2014 |
4.3.0 | 2,515 | 8/8/2014 |
4.2.0 | 2,470 | 7/4/2014 |
4.1.0 | 2,425 | 5/27/2014 |
4.0.0 | 2,163 | 5/14/2014 |
3.9.0 | 2,457 | 4/25/2014 |
3.8.0 | 2,764 | 3/27/2014 |
3.7.0 | 2,722 | 2/28/2014 |
3.6.0.1 | 2,304 | 12/20/2013 |
3.6.0 | 2,083 | 12/12/2013 |
3.5.0 | 4,919 | 9/26/2013 |
3.4.0 | 2,216 | 8/20/2013 |
3.3.0 | 2,375 | 6/4/2013 |
3.2.0 | 2,435 | 5/16/2013 |
3.1.0 | 2,256 | 4/3/2013 |
3.0.0 | 2,366 | 2/20/2013 |
2.9.0 | 2,345 | 12/17/2012 |
2.8.0 | 2,543 | 11/12/2012 |
2.7.0 | 2,486 | 10/2/2012 |
2.6.0 | 2,321 | 8/28/2012 |
2.5.0 | 2,350 | 8/13/2012 |
2.4.0 | 2,316 | 7/13/2012 |
2.3.0 | 2,352 | 6/4/2012 |
2.2.0 | 2,378 | 4/28/2012 |
2.1.0 | 2,443 | 4/9/2012 |
2.0.0 | 2,367 | 3/8/2012 |
1.9.0.1 | 2,331 | 2/16/2012 |
1.9.0 | 2,334 | 2/6/2012 |
1.8.1 | 2,341 | 1/24/2012 |
1.8.0 | 2,788 | 1/13/2012 |