浏览我们的产品

Aspose.Diagram for .NET 17.7 发行说明

改进和变化

钥匙概括类别
DIAGRAMNET-51204diagram 保存后打印机纸张尺寸发生变化。强化
DIAGRAMNET-51230页边距值不正确。强化
DIAGRAMNET-51274添加对在形状级别插入注释的支持。强化
DIAGRAMNET-51297输入 VDX - SolutionXML 读取不正确。强化
DIAGRAMNET-51061Missing shapes on converting a VST to PNG.漏洞
DIAGRAMNET-51262Displaced text items on converting a VSDM to SVG.漏洞
DIAGRAMNET-51276VSD to SVG - all icons are not visible properly.漏洞
DIAGRAMNET-51277VSDM to SVG - Missing shadow of shapes.漏洞
DIAGRAMNET-51279A missing character on converting a VSD to PDF.漏洞
DIAGRAMNET-51282某些 vdx 文件在保存后损坏。漏洞
DIAGRAMNET-51284-DiagramException 在 vsdx 文件加载时发生。漏洞
DIAGRAMNET-51285VSD to PNG - all text items are missing.漏洞
DIAGRAMNET-51286VSD to PNG - the partial rendering of a shape.漏洞
DIAGRAMNET-51288Invalid color value error on converting a VSDX to PNG.漏洞
DIAGRAMNET-51289页面级评论图标不显示文本。漏洞
DIAGRAMNET-51290Aspose.Diagram SetWidth 方法中的错误。漏洞
DIAGRAMNET-51291输出 VSDX - 直线设置连接线时布局不正确。漏洞
DIAGRAMNET-51292输出 VSDX - 连接线的文本项放错了位置。漏洞
DIAGRAMNET-51293VSDX to SVG - an additional mark appears along with shapes.漏洞
DIAGRAMNET-51294VSDM to SVG - an additional mark appears along with shapes.漏洞

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

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

在 Page 类中添加 AddComment 方法

Page 类公开的重载 AddComment 方法采用 Shape 类实例和评论的文本字符串。

 // load diagram

Diagram diagram = new Diagram(@"c:\temp\Drawing1.vsdx");

// retrieve page by name

Aspose.Diagram.Page page = diagram.Pages.GetPage("Page-1");

// retrieve shape by ID

Aspose.Diagram.Shape shape = page.Shapes.GetShape(12);

page.AddComment(shape, "Hello");

// save diagram

diagram.Save(@"c:\temp\Drawing1.vsdx", SaveFileFormat.VSDX);

使用示例

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

  1. 在 Visio 绘图中添加形状级注释


 
 简体中文