MathParagraph

MathParagraph class

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

MathParagraph

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

Result: MathParagraph


MathParagraph

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

Result: 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.

Result: boolean


getCount

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

Result: int


getJustification

NameDescription
getJustification()Paragraph Justification Default value: CenteredAsGroup

Result: 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

Result: MathBlock


indexOf

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

Parameters:

NameTypeDescription
mathBlockMathBlockThe item to locate in the collection.

Result: 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()

Result:


iteratorJava

NameDescription
iteratorJava()

Result:


remove

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

Parameters:

NameTypeDescription
mathBlockMathBlockThe object to remove from the collection.

Result: 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

writeAsMathMlToBytes

NameDescription
writeAsMathMlToBytes ()Saves content of this MathParagraph as MathML

Result: Bytes[]