浏览我们的产品

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.

 

.NET 22.8 的 Aspose.Diagram

下载  支持论坛 

文件详情

  • Downloads:
  • 1
  • File Size:
  • 13.04MB
  • Date Added:
  • 3/8/2022

文件详情

动态连接器形状

能够以 Visio® 格式将点添加到动态连接器形状。以下 C# 示例代码演示了如何使用 API 在 VSDX 图表中选择重新路由连接器形状:

// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_Shapes();

// Call a Diagram class constructor to load the VSDX diagram
Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx");
// Get page by name
Page page = diagram.Pages.GetPage("Page-3");

// Get a particular connector shape
Shape shape = page.Shapes.GetShape(18);
// Set reroute option
shape.Layout.ConFixedCode.Value = ConFixedCodeValue.NeverReroute;

// Save Visio diagram
diagram.Save(dataDir + "RerouteConnectors_out.vsdx", SaveFileFormat.VSDX);

改进的 Visio®/互操作功能

以前,在添加文本后,形状不会按照 Visio®/Interop 进行更新。此问题现已在 API 中解决。

改进了从 Visio® 到各种格式的转换

改进了各种文件格式转换场景,例如 Visio 到 HTML、VSD 到 VSDX、Diagram 到 SVG、VSDX 到 PDF 转换。

以下 C# 代码片段展示了如何使用 API 将 VSDX 转换为 PDF,同时拆分多个页面:

// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_LoadSaveConvert();
// Call the diagram constructor to load diagram from a VSDX file
Diagram diagram = new Diagram(dataDir + "Network Diagram_start.vsdx");
// Initialize PdfSaveOptions
Aspose.Diagram.Saving.PdfSaveOptions options = new Aspose.Diagram.Saving.PdfSaveOptions();
// set SplitMultiPages option
options.SplitMultiPages = true;
// save in PDF format
diagram.Save(dataDir + "SplitMultiPages.pdf", options);

有关此版本中的功能、增强功能和错误修复的完整列表,请访问 Aspose.Diagram for .NET 22.8 Release Notes

 简体中文