支持动态插入文档书签连接!Aspose.Words for .NET v19.10新功能你都了解吗?

Aspose.Words for .NET(欢迎下载)是用于执行各类文档管理和操做任务,支持生成,修改,转换,呈现和打印文档,而无需在跨平台应用程序中直接使用Microsoft Word。同时支持全部流行的Word处理文件格式,并容许将Word文档导出或转换为固定布局文件格式和最经常使用的图像、多媒体格式。布局

Aspose.Words for .Net更新至新版本v19.10,支持动态插入指向LINQ Reporting Engine的文档书签的连接,容许指定文本在文档中流动的方向,修复多项Bug,咱们一块儿来看一看新功能详解吧!spa

主要特色

  • 实现的DocumentDirection选项容许指定文本在文档中流动的方向。
  • 为“ graphicFrame”容器内的图形实现了适当的缩放,以进行DrawingML渲染。
  • 渲染时改进了OMath对象的“内联/非内联”验证。
  • 支持动态插入指向LINQ Reporting Engine的文档书签的连接。

公共API更改示例详解

▲实现了DocumentDirection选项,该选项容许指定文本在文档中流动的方向orm

添加了新的公开枚举:对象

////// Allows to specify the direction to flow the text in a document.
///public enum DocumentDirection

在TxtLoadOptions类中添加了新的公共选项:ci

////// Gets or sets a document direction.
/// The default value is. 
///public DocumentDirection DocumentDirection

用例:文档

TxtLoadOptions loadOptions = new TxtLoadOptions();
loadOptions.DocumentDirection = DocumentDirection.Auto;
  
Document doc = new Document("SomeRtlText.txt", loadOptions);
  
Paragraph paragraph = doc.FirstSection.Body.FirstParagraph;
Console.WriteLine(paragraph.ParagraphFormat.Bidi);
相关文章
相关标签/搜索