浏览我们的产品
Aspose.Diagram for .NET 17.02.0 发行说明
此页面包含发行说明Aspose.Diagram for .NET 17.02.0.
改进和变化
钥匙 | 概括 | 类别 |
---|---|---|
DIAGRAMNET-50018 | 添加了对 CLS 兼容的支持。 | 新功能 |
DIAGRAMNET-51110 | 与仪表集成。 | 新功能 |
DIAGRAMNET-51143 | 能够获得给定形状的组。 | 新功能 |
DIAGRAMNET-51144 | 能够获得给定形状的父级。 | 新功能 |
DIAGRAMNET-50149 | VSD to PDF conversion, the background color shade of a group shape is getting changed. | 漏洞 |
DIAGRAMNET-50579 | VSDX to PDF conversion, incorrect background color of the shape. | 漏洞 |
DIAGRAMNET-50984 | The border lines of the table are missing on converting a VSDX to PNG. | 漏洞 |
DIAGRAMNET-50985 | The text items are not aligned properly on converting a VSDX to PNG. | 漏洞 |
DIAGRAMNET-50999 | Rendering incorrect color of shapes on converting a VSD to PNG. | 漏洞 |
DIAGRAMNET-51002 | HTMLSaveOptions.DefaultFont 属性未按预期工作。 | 漏洞 |
DIAGRAMNET-51049 | The color of shapes is not being rendered correctly on converting a VSD to HTML. | 漏洞 |
DIAGRAMNET-51080 | The wrong text alignment of shapes on saving in EMF. | 漏洞 |
DIAGRAMNET-51132 | The rounded shape corners are being changed on converting a VSD to PDF. | 漏洞 |
DIAGRAMNET-51133 | The layout of dynamic arrow connector is changed on converting a VSD to PDF. | 漏洞 |
DIAGRAMNET-51135 | The Visio shapes are displaced on converting a VSDX to PDF. | 漏洞 |
DIAGRAMNET-51136 | The vertical text appears as horizontal text on converting a VSDX to PDF. | 漏洞 |
DIAGRAMNET-51140 | Vertical text box is overhanging the edge of the node while converting VSDX to PDF. | 漏洞 |
DIAGRAMNET-51138 | VSDX diagram 载入错误。 | 例外 |
DIAGRAMNET-51139 | Can’t access file error occurred on converting a VSDX to HTML. | 例外 |
DIAGRAMNET-51148 | NullReferenceException at Diagram.Save while converting VSD to HTML. | 例外 |
DIAGRAMNET-51149 | NullReferenceException 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 文档中添加的帮助主题列表: