Add
MathParagraph.Add 方法
将 IMathBlock 添加到集合的末尾。
public void Add(IMathBlock mathBlock)
参数 | 类型 | 描述 |
---|---|---|
mathBlock | IMathBlock | 将添加到集合末尾的数学块 |
示例
示例:
[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")));