DelimiterEquationNode
DelimiterEquationNode class
This class specifies the delimiter equation, consisting of opening and closing delimiters (such as parentheses, braces, brackets, and vertical bars), and a component contained inside. The delimiter may have more than one component, with a designated separator character between each component.
Properties
| Name | Type | Description |
|---|---|---|
| BeginChar | String | Delimiter beginning character. It should be noted that this property only accepts one character, and if multiple charact |
| EndChar | String | Delimiter ending character. It should be noted that this property only accepts one character, and if multiple characters |
| NaryGrow | boolean | This property specifies the growth property of the delimiter at the document level. When off, the delimiter will not gro |
| SeparatorChar | String | Delimiter separator character. It should be noted that this property only accepts one character, and if multiple charact |
| DelimiterShape | int | Specifies the shape of delimiters in the delimiter object. The value of the property is EquationDelimiterShapeType integ |
| ParentNode | EquationNode | Specifies the parent node of the current node |
| Type | int | Represents the type of the node. The value of the property is TextNodeType integer constant. |
| EquationType | int | Get the equation type of the current node The value of the property is EquationNodeType integer constant. |
| StartIndex | int | Gets the start index of the characters. |
| Length | int | Gets the length of the characters. |
| Font | Font | Returns the font of this object. |
| TextOptions | TextOptions | Returns the text options. |
Methods
| Name | Description |
|---|---|
| equals | Determine whether the current equation node is equal to the specified node |
| toLaTeX | |
| toMathML | |
| addChild | Insert a node of the specified type at the end of the child node list of the current node. |
| insertChild | Inserts a node of the specified type at the specified index position in the current node’s child node list. |
| insertAfter | Inserts the specified node after the current node. |
| insertBefore | Inserts the specified node before the current node. |
| getChild | Returns the node at the specified index among the children of the current node. |
| remove | Removes itself from the parent. |
| removeChild | Removes the specified node from the current node’s children. |
| removeAllChildren | Removes all the child nodes of the current node. |
| setWordArtStyle | Sets the preset WordArt style. |
Only for the text of shape/chart. |
DelimiterEquationNode.BeginChar property
Delimiter beginning character. It should be noted that this property only accepts one character, and if multiple characters are passed in, only the first character is accepted.
Type: String
DelimiterEquationNode.EndChar property
Delimiter ending character. It should be noted that this property only accepts one character, and if multiple characters are passed in, only the first character is accepted.
Type: String
DelimiterEquationNode.NaryGrow property
This property specifies the growth property of the delimiter at the document level. When off, the delimiter will not grow to match the size of its component height. When enabled, the delimiter grows vertically to match its component height.
Type: boolean
DelimiterEquationNode.SeparatorChar property
Delimiter separator character. It should be noted that this property only accepts one character, and if multiple characters are passed in, only the first character is accepted.
Type: String
DelimiterEquationNode.DelimiterShape property
Specifies the shape of delimiters in the delimiter object. The value of the property is EquationDelimiterShapeType integer constant.
Type: int
DelimiterEquationNode.ParentNode property
Specifies the parent node of the current node
Type: EquationNode
DelimiterEquationNode.Type property
Represents the type of the node. The value of the property is TextNodeType integer constant.
Type: int
DelimiterEquationNode.EquationType property
Get the equation type of the current node The value of the property is EquationNodeType integer constant.
Type: int
DelimiterEquationNode.StartIndex property
Gets the start index of the characters.
Type: int
DelimiterEquationNode.Length property
Gets the length of the characters.
Type: int
DelimiterEquationNode.Font property
Returns the font of this object.
Type: Font
DelimiterEquationNode.TextOptions property
Returns the text options.
Type: TextOptions
equals(obj)
Determine whether the current equation node is equal to the specified node
| Parameter | Type | Description |
|---|---|---|
| obj | Object | The specified node |
toLaTeX()
toMathML()
addChild(equationType) (1 of 2)
Insert a node of the specified type at the end of the child node list of the current node.
| Parameter | Type | Description |
|---|---|---|
| equationType | int | A EquationNodeType value. Types of Equation Nodes |
Returns: 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) (2 of 2)
Inserts the specified node at the end of the current node’s list of child nodes.
| Parameter | Type | Description |
|---|---|---|
| node | EquationNode | The specified node |
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 | int | index value |
| equationType | int | A EquationNodeType value. Types of Equation Nodes |
Returns: If the specified type exists, the corresponding node is returned, and if the type does not exist, a node of unknown type is returned.
insertAfter(equationType)
Inserts the specified node after the current node.
| Parameter | Type | Description |
|---|---|---|
| equationType | int | A EquationNodeType value. Types of Equation Nodes |
Returns: 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 | int | A EquationNodeType value. Types of Equation Nodes |
Returns: If the specified type exists, the corresponding node is returned, and if the type does not exist, a node of unknown type is returned.
getChild(index)
Returns the node at the specified index among the children of the current node.
| Parameter | Type | Description |
|---|---|---|
| index | int | Index of the node |
Returns: Returns the corresponding node if the specified node exists, otherwise returns null.
remove()
Removes itself from the parent.
removeChild(node) (1 of 2)
Removes the specified node from the current node’s children.
| Parameter | Type | Description |
|---|---|---|
| node | EquationNode | Node to be deleted. |
removeChild(index) (2 of 2)
Removes the node at the specified index from the current node’s children.
| Parameter | Type | Description |
|---|---|---|
| index | int | Index of the node |
removeAllChildren()
Removes all the child nodes of the current node.
setWordArtStyle(style)
Sets the preset WordArt style.
Only for the text of shape/chart.
| Parameter | Type | Description |
|---|---|---|
| style | int | A PresetWordArtStyle value. The preset WordArt style. |