Spire.Presentation 6.9.2已发布。本次更新支持了添加数学公式和检测shape是否包含数学公式,支持在放映模式下隐藏音频,同时还支持判断文档是否被加密等功能。详情请阅读以下内容。 新功能: 支持添加数学公式和检测shape是否包含数学公式 Presentation ppt = new Presentation(); string latexMathCode = @"x^{2}+\sqrt{x^{2}+1}=2"; IAutoShape shape = ppt.Slides[0].Shapes.AppendShape(ShapeType.Rectangle, new RectangleF(30, 100, 400, 30)); shape.TextFrame.Paragraphs.Clear(); //Add math equation TextParagraph tp = shape.TextFrame.Paragraphs.AddParagraphFromLatexMathCode(latexMathCode); for (int i = 0; i…