Aspose.Slides for .Net更新至v20.8,支持Aspsoe中的Redact文本,支持图表数据的GetRange()方法,支持SketchStyle属性,并有1个功能正在研究中,欢迎下载体验。
具体更新内容
key | 概述 | 类别 |
---|---|---|
SLIDESNET-42018 | 如果“用户路径”效果与“缩放/缩放”效果结合使用,动画将失败 | 研究中 |
SLIDESNET-42091 | 支持Aspsoe中的Redact文本 | 新功能 |
SLIDESNET-42044 | 支持图表数据的GetRange()方法 | 新功能 |
SLIDESNET-41864 | SketchStyle属性支持 | 新功能 |
更多更新修复请参考:【Aspose.Slides for .NET v20.8更新说明】让人兴奋的是整合所有格式API处理套包Aspose.Slides正在 火热销售中!联系客服立马1分钟了解全部咨询!
公共API更改
添加IChartData.GetRange方法
已添加新方法 IChartData.GetRange。该方法返回图表使用的工作簿数据范围。IChartData.GetRange方法返回字符串值。
返回的值看起来像“ Sheet1!$ A $ 1:$ D $ 5”,其中“ Sheet1”是源工作表,$ A $ 1:$ D $ 5是一个单元格区域。
using (Presentation pres = new Presentation()){ IChart chart = pres.Slides[0].Shapes.AddChart(ChartType.ClusteredColumn, 10, 10, 400, 300); string result = chart.ChartData.GetRange();}
添加了“形状草图样式”效果
草绘样式效果功能有助于更改幻灯片中的形状外观,从而迫使形状看起来像草图。它将手绘(或“草图”)样式应用于形状。
下图演示了PowerPoint UI元素将此效果应用于形状。

在Aspose.Slides中,为了为“草绘样式”效果提供相同的选项,已添加了枚举LineSketchType和接口ISketchFormat。SketchFormat属性(int SketchFormat类型)已添加到ILineFormat接口。
添加LineSketchType枚举
所述LineSketchType确定预设绘制风格。以下是LineSketchType枚举的定义:
public enum LineSketchType { /// <summary> /// Specifies that a shape Sketch effect is undefined. /// </summary> NotDefined = -1, /// <summary> /// Specifies that a shape has no Sketch effect. This is equivalent to this property being empty. /// </summary> None = 0, /// <summary> /// Specifies that a shape has the Curved effect, which turns each edge of the shape into one big gentle curve. /// </summary> Curved = 1, /// <summary> /// Specifies that a shape has the Freehand effect, which most closely resembles an imperfectly drawn line. /// </summary> Freehand = 2, /// <summary> /// Specifies that a shape has the Scribble effect, which has exaggerated oscillation as if drawn purposely messy. /// </summary> Scribble = 3 }
添加ISketchFormat接口
已添加带有SketchFormat实现类的ISketchFormat接口:
/// <summary> /// Represents properties for lines sketch format. /// </summary> public interface ISketchFormat { /// <summary> /// Returns or sets the sketch type. /// Read/write <see cref="Slides.LineSketchType"/>. /// </summary> LineSketchType SketchType { get; set; } }
SketchFormat财产ISketchFormat类型已添加到ILineFormat:
/// <summary> /// Returns the sketch format of a line. /// Read-only <see cref="ISketchFormat"/>. /// </summary> ISketchFormat SketchFormat { get; }
下面的示例演示如何为形状设置草图类型:
using (Presentation pres = new Presentation()){ IAutoShape shape = pres.Slides[0].Shapes.AddAutoShape(ShapeType.Rectangle, 20, 20, 300, 150); shape.FillFormat.FillType = FillType.NoFill; // Transform shape to sketch of a freehand style shape.LineFormat.SketchFormat.SketchType = LineSketchType.Freehand; pres.Save("sketch.pptx", SaveFormat.Pptx);}
通过上面的代码片段生成的形状边界线样式具有以下外观:

还想要更多吗可以点击阅读
【2020 · Aspose最新资源整合】,查找需要的教程资源。如果您有任何疑问或需求,请随时联系客服,我们很高兴为您提供查询和咨询。标签:
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!