浏览我们的产品

Aspose.Diagram for .NET 17.02.0 发行说明

改进和变化

钥匙概括类别
DIAGRAMNET-50018添加了对 CLS 兼容的支持。新功能
DIAGRAMNET-51110与仪表集成。新功能
DIAGRAMNET-51143能够获得给定形状的组。新功能
DIAGRAMNET-51144能够获得给定形状的父级。新功能
DIAGRAMNET-50149VSD to PDF conversion, the background color shade of a group shape is getting changed.漏洞
DIAGRAMNET-50579VSDX to PDF conversion, incorrect background color of the shape.漏洞
DIAGRAMNET-50984The border lines of the table are missing on converting a VSDX to PNG.漏洞
DIAGRAMNET-50985The text items are not aligned properly on converting a VSDX to PNG.漏洞
DIAGRAMNET-50999Rendering incorrect color of shapes on converting a VSD to PNG.漏洞
DIAGRAMNET-51002HTMLSaveOptions.DefaultFont 属性未按预期工作。漏洞
DIAGRAMNET-51049The color of shapes is not being rendered correctly on converting a VSD to HTML.漏洞
DIAGRAMNET-51080The wrong text alignment of shapes on saving in EMF.漏洞
DIAGRAMNET-51132The rounded shape corners are being changed on converting a VSD to PDF.漏洞
DIAGRAMNET-51133The layout of dynamic arrow connector is changed on converting a VSD to PDF.漏洞
DIAGRAMNET-51135The Visio shapes are displaced on converting a VSDX to PDF.漏洞
DIAGRAMNET-51136The vertical text appears as horizontal text on converting a VSDX to PDF.漏洞
DIAGRAMNET-51140Vertical text box is overhanging the edge of the node while converting VSDX to PDF.漏洞
DIAGRAMNET-51138VSDX diagram 载入错误。例外
DIAGRAMNET-51139Can’t access file error occurred on converting a VSDX to HTML.例外
DIAGRAMNET-51148NullReferenceException at Diagram.Save while converting VSD to HTML.例外
DIAGRAMNET-51149NullReferenceException at Diagram.Save when CustomProp.Name property is not set例外

公共 API 和向后不兼容的更改

以下是对公众 API 所做的任何更改的列表,例如添加、重命名、删除或弃用成员,以及对 Aspose.Diagram for .NET 所做的任何非向后兼容更改。如果您对列出的任何更改有疑虑,请在这Aspose.Diagram 支持论坛.

添加 Shape.ParentShape 属性

Shape.ParentShape 属性允许获取最近形状的父形状。

 // Call a Diagram class constructor to load the VSD diagram

Diagram diagram = new Diagram("Drawing1.vsdx");

// get a sub-shape by page name, group shape ID, and then sub-shape ID

Shape shape = diagram.Pages.GetPage("Page-3").Shapes.GetShape(13).Shapes.GetShape(2);

Shape parentShape = shape.ParentShape;

Console.WriteLine("Parent Shape's Properties:");

Console.WriteLine("Shape ID: " + parentShape.ID);

Console.WriteLine("Shape Name: " + parentShape.Name);

Console.WriteLine("Shape Type: " + parentShape.Type);

添加 Shape.IsInGroup 方法

Shape.IsInGroup 方法允许检测最近的形状是否是任何组形状的一部分。

 // Call a Diagram class constructor to load the VSD diagram

Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx");

// get a sub-shape by page name, group shape ID, and then sub-shape ID

Shape shape = diagram.Pages.GetPage("Page-3").Shapes.GetShape(13).Shapes.GetShape(2);

Console.WriteLine("Is it in a Group: " + shape.IsInGroup());

添加计量类

添加了 Metered 类。它允许开发人员解锁 Aspose.Diagram API 的评估限制以及跟踪和维护 API 许可证。它还监视 Aspose.Diagram API 的常规使用情况。

 // Initialize a Metered license class object

Aspose.Diagram.Metered metered = new Aspose.Diagram.Metered();

// apply public and private keys

metered.SetMeteredKey("your-public-key", "your-private-key");

使用示例

请查看 Aspose.Diagram Wiki 文档中添加的帮助主题列表:

  1. 设置公钥和私钥以应用计量许可证
  2. 检索子形状的父形状
  3. 验证 Visio 形状是否在一组形状中


 
 简体中文