国产PPT功能开发类库Spire.Presentation for .NET v6.8.3正式版发布!支持加载保存DPS/DPT格式

Spire.Presentation 6.8.3已发布。该版本支持加载保存DPS/DPT格式的文档,支持设置PPT中图表的边框样式为直角,同时还支持在PPT中,使用正则表达式替换文本,欢迎下载体验。

Spire.Presentation for .NET更新内容

新功能

ppt.SaveToFile(outputPath + filename + ".dps", FileFormat.Dps);ppt.SaveToFile(outputPath + filename + ".dpt", FileFormat.Dpt);
  • 支持修改PPT中图表内趋势线方程的字体大小和位置
  • IChart chart = ppt.Slides[0].Shapes[0] as IChart;ITrendlines trendline = chart.Series[0].TrendLines[0] as ITrendlines;foreach(TextParagraph para in trendline.TrendLineLabel.TextFrameProperties.Paragraphs){    para.DefaultCharacterProperties.FontHeight = 20;    foreach(TextRange range in para.TextRanges)    {        range.FontHeight = 20;    }}trendline.TrendLineLabel.OffsetX = -0.1f;trendline.TrendLineLabel.OffsetY = 0.1f;
  • 支持设置PPT中图表的边框样式为直角
  • IChart chart = ppt.Slides[0].Shapes[0] as IChart;chart.Line.FillFormat.FillType = FillFormatType.Solid;chart.Line.FillFormat.SolidFillColor.Color = Color.Red;chart.BorderRoundedCorners = false;
  • 支持在PPT中,使用正则表达式替换文本
  • Regex regex = new Regex("^[A-Za-z]+$");string newvalue = "new string";foreach(IShape shape in ppt.Slides[0].Shapes){    shape.ReplaceTextWithRegex(regex, newvalue);}

    问题修复


    还想要更多吗可以点击阅读【 E-iceblue最新资源整合】查找需要的教程资源。是E-iceblue官方友好合作伙伴,如果您对spire.Presentation感兴趣,可以联系在线客服了解具体授权价格和使用机制。
    标签:

    声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

    上一篇 2021年7月19日
    下一篇 2021年7月19日

    相关推荐

    发表回复

    登录后才能评论