Add

MathParagraph.Add method

Adds IMathBlock to the end of collection.

public void Add(IMathBlock mathBlock)
ParameterTypeDescription
mathBlockIMathBlockA mathematical block that will be added to the end of the collection

Examples

Example:

[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")));

See Also