BarEquationNode
BarEquationNode class
This class specifies the bar equation, consisting of a base argument and an overbar or underbar.
Methods
| Name | Description |
|---|---|
| addChild(equationType) | Insert a node of the specified type at the end of the child node list of the current node. |
| addChild(node) | Inserts the specified node at the end of the current node’s list of child nodes. |
| equals(obj) | Determine whether the current equation node is equal to the specified node |
| getBarPosition() | This attribute specifies the position of the bar in the bar object The value of the property is EquationCharacterPositio |
| getChild(index) | Returns the node at the specified index among the children of the current node. |
| getEquationType() | Get the equation type of the current node The value of the property is EquationNodeType integer constant. |
| getFont() | Returns the font of this object. |
| getLength() | Gets the length of the characters. |
| getParentNode() | Specifies the parent node of the current node |
| getStartIndex() | Gets the start index of the characters. |
| getTextOptions() | Returns the text options. |
| getType() | Represents the type of the node. The value of the property is TextNodeType integer constant. |
| insertAfter(equationType) | Inserts the specified node after the current node. |
| insertBefore(equationType) | Inserts the specified node before the current node. |
| insertChild(index, equationType) | Inserts a node of the specified type at the specified index position in the current node’s child node list. |
| remove() | Removes itself from the parent. |
| removeAllChildren() | Removes all the child nodes of the current node. |
| removeChild(node) | Removes the specified node from the current node’s children. |
| removeChild(index) | Removes the node at the specified index from the current node’s children. |
| setBarPosition() | This attribute specifies the position of the bar in the bar object The value of the property is EquationCharacterPositio |
| setParentNode() | Specifies the parent node of the current node |
| setWordArtStyle(style) | Sets the preset WordArt style. Only for the text of shape/chart. |
| toLaTeX() | |
| toMathML() |
addChild(equationType)
Insert a node of the specified type at the end of the child node list of the current node.
| Parameter | Type | Description |
|---|---|---|
| equationType | Number | EquationNodeType |
Returns: EquationNode — EquationNode If the specified type exists, the corresponding node is returned, and if the type does not exist, a node of unknown type is returned.
addChild(node)
Inserts the specified node at the end of the current node’s list of child nodes.
| Parameter | Type | Description |
|---|---|---|
| node | EquationNode | The specified node |
equals(obj)
Determine whether the current equation node is equal to the specified node
| Parameter | Type | Description |
|---|---|---|
| obj | Object | The specified node |
Returns: boolean — boolean
getBarPosition()
This attribute specifies the position of the bar in the bar object The value of the property is EquationCharacterPositionType integer constant.
getChild(index)
Returns the node at the specified index among the children of the current node.
| Parameter | Type | Description |
|---|---|---|
| index | Number | Index of the node |
Returns: EquationNode — EquationNode Returns the corresponding node if the specified node exists, otherwise returns null.
getEquationType()
Get the equation type of the current node The value of the property is EquationNodeType integer constant.
getFont()
Returns the font of this object.
getLength()
Gets the length of the characters.
getParentNode()
Specifies the parent node of the current node
getStartIndex()
Gets the start index of the characters.
getTextOptions()
Returns the text options.
getType()
Represents the type of the node. The value of the property is TextNodeType integer constant.
insertAfter(equationType)
Inserts the specified node after the current node.
| Parameter | Type | Description |
|---|---|---|
| equationType | Number | EquationNodeType |
Returns: EquationNode — EquationNode If the specified type exists, the corresponding node is returned, and if the type does not exist, a node of unknown type is returned.
insertBefore(equationType)
Inserts the specified node before the current node.
| Parameter | Type | Description |
|---|---|---|
| equationType | Number | EquationNodeType |
Returns: EquationNode — EquationNode If the specified type exists, the corresponding node is returned, and if the type does not exist, a node of unknown type is returned.
insertChild(index, equationType)
Inserts a node of the specified type at the specified index position in the current node’s child node list.
| Parameter | Type | Description |
|---|---|---|
| index | Number | index value |
| equationType | Number | EquationNodeType |
Returns: EquationNode — EquationNode If the specified type exists, the corresponding node is returned, and if the type does not exist, a node of unknown type is returned.
remove()
Removes itself from the parent.
removeAllChildren()
Removes all the child nodes of the current node.
removeChild(node)
Removes the specified node from the current node’s children.
| Parameter | Type | Description |
|---|---|---|
| node | EquationNode | Node to be deleted. |
removeChild(index)
Removes the node at the specified index from the current node’s children.
| Parameter | Type | Description |
|---|---|---|
| index | Number | Index of the node |
setBarPosition()
This attribute specifies the position of the bar in the bar object The value of the property is EquationCharacterPositionType integer constant.
setParentNode()
Specifies the parent node of the current node
setWordArtStyle(style)
Sets the preset WordArt style. Only for the text of shape/chart.
| Parameter | Type | Description |
|---|---|---|
| style | Number | PresetWordArtStyle |