MathParagraph class

MathParagraph class

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

The MathParagraph type exposes the following members:

Constructors

ConstructorDescription
__init__(self)Initializes a new instance of the MathParagraph class.
__init__(self, math_block)Initializes a new instance of the MathParagraph class.

Properties

PropertyDescription
justificationParagraph Justification
Default value: CenteredAsGroup
countGets the number of elements actually contained in the collection.
Read-only int.

Gets the item at the specified index. Read-only IMathBlock.

Indexer

NameDescription
[index]The zero-based index of the item to get

Methods

MethodDescription
clear(self)Removes all elements from the collection.
add(self, math_block)Adds IMathBlock to the end of collection.
remove(self, math_block)Removes the first occurrence of a specific object from the collection/>.
contains(self, math_block)Determines whether the collection contains a specific value.
index_of(self, math_block)Determines the index of a specific IMathBlock in collection.
insert(self, index, math_block)Inserts IMathBlock into the collection at the specified index.
remove_at(self, index)Removes an item at the specified index of the collection.
write_as_math_ml(self, stream)Saves content of this MathParagraph as MathML
to_latex(self)Gets mathematical equation in LaTeX format

See Also