MathParagraph
MathParagraph class
Mathematical paragraph that is a container for mathematical blocks (IMathBlock)
MathParagraph
Name | Description |
---|---|
MathParagraph() | Initializes a new instance of the MathParagraph class. |
Returns: MathParagraph
MathParagraph
Name | Description |
---|---|
MathParagraph(MathBlock) | Initializes a new instance of the MathParagraph class. |
Returns: MathParagraph
add
Name | Description |
---|---|
add (MathBlock) | Adds IMathBlock to the end of collection. |
Parameters:
Name | Type | Description |
---|---|---|
mathBlock | MathBlock | A mathematical block that will be added to the end of the collection |
Returns: void
clear
Name | Description |
---|---|
clear () | Removes all elements from the collection. |
Returns: void
contains
Name | Description |
---|---|
contains (MathBlock) | Determines whether the collection contains a specific value. |
Parameters:
Name | Type | Description |
---|---|---|
mathBlock | MathBlock | The object to locate in the collection. |
Returns: boolean
getCount
Name | Description |
---|---|
getCount () | Gets the number of elements actually contained in the collection. Read-only int. |
Returns: int
getJustification
Name | Description |
---|---|
getJustification () | Paragraph Justification Default value: CenteredAsGroup |
Returns: int
get_Item
Name | Description |
---|---|
get_Item (int) | Gets the item at the specified index. Read-only IMathBlock. |
Parameters:
Name | Type | Description |
---|---|---|
index | int | The zero-based index of the item to get |
Returns: MathBlock
indexOf
Name | Description |
---|---|
indexOf (MathBlock) | Determines the index of a specific IMathBlock in collection. |
Parameters:
Name | Type | Description |
---|---|---|
mathBlock | MathBlock | The item to locate in the collection. |
Returns: int
insert
Name | Description |
---|---|
insert (int, MathBlock) | Inserts IMathBlock into the collection at the specified index. |
Parameters:
Name | Type | Description |
---|---|---|
index | int | The zero-based index at which an item should be inserted. |
mathBlock | MathBlock | The IMathBlock to insert. |
Returns: void
iterator
Name | Description |
---|---|
iterator () |
Returns:
iteratorJava
Name | Description |
---|---|
iteratorJava () |
Returns:
remove
Name | Description |
---|---|
remove (MathBlock) | Removes the first occurrence of a specific object from the collection. |
Parameters:
Name | Type | Description |
---|---|---|
mathBlock | MathBlock | The object to remove from the collection. |
Returns: boolean
removeAt
Name | Description |
---|---|
removeAt (int) | Removes an item at the specified index of the collection. |
Parameters:
Name | Type | Description |
---|---|---|
index | int | The zero-based index of the item to remove. |
Returns: void
setJustification
Name | Description |
---|---|
setJustification (int) | Paragraph Justification Default value: CenteredAsGroup |
Returns: void
set_Item
Name | Description |
---|---|
set_Item (int, MathBlock) | Gets the item at the specified index. Read-only IMathBlock. |
Parameters:
Name | Type | Description |
---|---|---|
value | int | The block of a mathematical text. |
index | MathBlock | The zero-based index of the item to get |
Returns: void
toLatex
Name | Description |
---|---|
toLatex () | Gets mathematical equation in LaTeX format |
Returns: String
writeAsMathMl
Name | Description |
---|---|
writeAsMathMl (OutputStream) | Saves content of this MathParagraph as MathML |
Parameters:
Name | Type | Description |
---|---|---|
stream | OutputStream | Target stream |
Returns: void