Add

MathParagraph.Add method

将 IMathBlock 添加到集合末尾。

public void Add(IMathBlock mathBlock)
范围类型描述
mathBlockIMathBlock将添加到集合末尾的数学块

例子

示例:

[C#]
IAutoShape shape = slide.Shapes.AddMathShape(x, y, width, height);
IMathParagraph mathParagraph = (shape.TextFrame.Paragraphs[0].Portions[0] as MathPortion).MathParagraph;
mathParagraph.Add(new MathBlock(new MathematicalText("x")));

也可以看看