MathParagraph

MathParagraph class

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

MathParagraph

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

Returns: MathParagraph


MathParagraph

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

Returns: MathParagraph


add

NameDescription
add(MathBlock)Adds IMathBlock to the end of collection.

Parameters:

NameTypeDescription
mathBlockMathBlockA mathematical block that will be added to the end of the collection

clear

NameDescription
clear()Removes all elements from the collection.

contains

NameDescription
contains(MathBlock)Determines whether the collection contains a specific value.

Parameters:

NameTypeDescription
mathBlockMathBlockThe object to locate in the collection.

Returns: boolean


getCount

NameDescription
getCount()Gets the number of elements actually contained in the collection. Read-only int.

Returns: int


getJustification

NameDescription
getJustification()Paragraph Justification Default value: CenteredAsGroup

Returns: int


get_Item

NameDescription
get_Item(int)Gets the item at the specified index. Read-only IMathBlock.

Parameters:

NameTypeDescription
indexintThe zero-based index of the item to get

Returns: MathBlock


indexOf

NameDescription
indexOf(MathBlock)Determines the index of a specific IMathBlock in collection.

Parameters:

NameTypeDescription
mathBlockMathBlockThe item to locate in the collection.

Returns: int


insert

NameDescription
insert(int, MathBlock)Inserts IMathBlock into the collection at the specified index.

Parameters:

NameTypeDescription
indexintThe zero-based index at which an item should be inserted.
mathBlockMathBlockThe IMathBlock to insert.

iterator

NameDescription
iterator()

Returns:


iteratorJava

NameDescription
iteratorJava()

Returns:


remove

NameDescription
remove(MathBlock)Removes the first occurrence of a specific object from the collection.

Parameters:

NameTypeDescription
mathBlockMathBlockThe object to remove from the collection.

Returns: boolean


removeAt

NameDescription
removeAt(int)Removes an item at the specified index of the collection.

Parameters:

NameTypeDescription
indexintThe zero-based index of the item to remove.

setJustification

NameDescription
setJustification(int)Paragraph Justification Default value: CenteredAsGroup

set_Item

NameDescription
set_Item(int, MathBlock)Gets the item at the specified index. Read-only IMathBlock.

Parameters:

NameTypeDescription
valueintThe block of a mathematical text.
indexMathBlockThe zero-based index of the item to get

toLatex

NameDescription
toLatex()Gets mathematical equation in LaTeX format

Returns: String


writeAsMathMlToBytes

NameDescription
writeAsMathMlToBytes ()Saves content of this MathParagraph as MathML

Returns: Bytes[]