原創(chuàng)|產(chǎn)品更新|編輯:李顯亮|2020-08-18 09:54:07.320|閱讀 553 次
概述:Aspose.Slides for .Net更新至v20.8,支持Aspsoe中的Redact文本,支持圖表數(shù)據(jù)的GetRange()方法,支持SketchStyle屬性,并有1個功能正在研究中,歡迎下載體驗。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
Aspose.Slides for .NET是一個獨特的演示處理API,它允許應(yīng)用程序讀取、寫入、修改和轉(zhuǎn)換PowerPoint演示文稿。作為一個獨立的API,它提供了管理PowerPoint關(guān)鍵功能的功能,如管理文本、形狀、表格和動畫、向幻燈片添加音頻和視頻、預(yù)覽幻燈片等,而不需要Microsoft PowerPoint。
Aspose.Slides for .NET迎來2020年8月更新v20.8,支持Aspsoe中的Redact文本,支持圖表數(shù)據(jù)的GetRange()方法,支持SketchStyle屬性,并有1個功能正在研究中。(點擊下方按鈕即可下載)
key | 概述 | 類別 |
---|---|---|
SLIDESNET-42018 | 如果“用戶路徑”效果與“縮放/縮放”效果結(jié)合使用,動畫將失敗 | 研究中 |
SLIDESNET-42091 | 支持Aspsoe中的Redact文本 | 新功能 |
SLIDESNET-42044 | 支持圖表數(shù)據(jù)的GetRange()方法 | 新功能 |
SLIDESNET-41864 | SketchStyle屬性支持 | 新功能 |
已添加新方法 IChartData.GetRange。該方法返回圖表使用的工作簿數(shù)據(jù)范圍。IChartData.GetRange方法返回字符串值。
返回的值看起來像“ Sheet1!$ A $ 1:$ D $ 5”,其中“ Sheet1”是源工作表,$ A $ 1:$ D $ 5是一個單元格區(qū)域。
using (Presentation pres = new Presentation()) { IChart chart = pres.Slides[0].Shapes.AddChart(ChartType.ClusteredColumn, 10, 10, 400, 300); string result = chart.ChartData.GetRange(); }
草繪樣式效果功能有助于更改幻燈片中的形狀外觀,從而迫使形狀看起來像草圖。它將手繪(或“草圖”)樣式應(yīng)用于形狀。
下圖演示了PowerPoint UI元素將此效果應(yīng)用于形狀。
在Aspose.Slides中,為了為“草繪樣式”效果提供相同的選項,已添加了枚舉LineSketchType和接口ISketchFormat。SketchFormat屬性(int SketchFormat類型)已添加到ILineFormat接口。
所述LineSketchType確定預(yù)設(shè)繪制風(fēng)格。以下是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 }
已添加帶有SketchFormat實現(xiàn)類的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財產(chǎn)ISketchFormat類型已添加到ILineFormat:
/// <summary> /// Returns the sketch format of a line. /// Read-only <see cref="ISketchFormat"/>. /// </summary> ISketchFormat SketchFormat { get; }
下面的示例演示如何為形狀設(shè)置草圖類型:
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); }
通過上面的代碼片段生成的形狀邊界線樣式具有以下外觀:
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@fc6vip.cn