MathParagraph

MathParagraph class

Mathematical paragraph that is a container for mathematical blocks (IMathBlock)

public class MathParagraph : IMathParagraph

Constructors

NameDescription
MathParagraph()Initializes a new instance of the MathParagraph class.
MathParagraph(IMathBlock)Initializes a new instance of the MathParagraph class.

Properties

NameDescription
Count { get; }Gets the number of elements actually contained in the collection. Read-only Int32.
Item { get; set; }Gets the item at the specified index. Read-only IMathBlock.
Justification { get; set; }Paragraph Justification Default value: CenteredAsGroup

Methods

NameDescription
Add(IMathBlock)Adds IMathBlock to the end of collection.
Clear()Removes all elements from the collection.
Contains(IMathBlock)Determines whether the collection contains a specific value.
IndexOf(IMathBlock)Determines the index of a specific IMathBlock in collection.
Insert(int, IMathBlock)Inserts IMathBlock into the collection at the specified index.
Remove(IMathBlock)Removes the first occurrence of a specific object from the collection/>.
RemoveAt(int)Removes an item at the specified index of the collection.
ToLatex()Gets mathematical equation in LaTeX format
WriteAsMathMl(Stream)Saves content of this MathParagraph as MathML

Examples

Example:

[C#]
IAutoShape shape = slide.Shapes.AddMathShape(x, y, width, height);
IMathParagraph mathParagraph = (shape.TextFrame.Paragraphs[0].Portions[0] as MathPortion).MathParagraph;
mathParagraph.Justification = MathJustification.LeftJustified;

See Also