MathParagraph Class

Mathematical paragraph that is a container for mathematical blocks (IMathBlock)
Inheritance Hierarchy
SystemObject
  Aspose.Slides.MathTextMathParagraph

Namespace:  Aspose.Slides.MathText
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 20.11.0.0 (20.11)
Syntax
public class MathParagraph : IMathParagraph, 
	IMathBlockCollection, IEnumerable<IMathBlock>, IEnumerable

The MathParagraph type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleMathParagraph
Initializes a new instance of the MathParagraph class.
Public methodCode exampleMathParagraph(IMathBlock)
Initializes a new instance of the MathParagraph class.
Properties
  NameDescription
Public propertyCode exampleCount
Gets the number of elements actually contained in the collection. Read-only Int32.
Public propertyCode exampleItem
Gets the item at the specified index. Read-only IMathBlock.
Public propertyCode exampleJustification
Paragraph Justification Default value: CenteredAsGroup
Methods
  NameDescription
Public methodCode exampleAdd
Adds IMathBlock to the end of collection.
Public methodCode exampleClear
Removes all elements from the collection.
Public methodCode exampleContains
Determines whether the collection contains a specific value.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodCode exampleIndexOf
Determines the index of a specific IMathBlock in collection.
Public methodCode exampleInsert
Inserts IMathBlock into the collection at the specified index.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodCode exampleRemove
Removes the first occurrence of a specific object from the collection/>.
Public methodCode exampleRemoveAt
Removes an item at the specified index of the collection.
Public methodToString (Inherited from Object.)
Public methodWriteAsMathMl
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