MatrixEquationNode

MatrixEquationNode class

This class specifies the Matrix equation, consisting of one or more elements laid out in one or more rows and one or more columns.

Properties

NameTypeDescription
BaseJcNumberThis attribute specifies the justification of the matrix. Text outside of the matrix can be aligned with the bottom, top
IsHidePlaceholderbooleanThis attribute specifies the Hide Placeholders property on a matrix. When this property is on, placeholders do not appea
ParentNodeEquationNodeSpecifies the parent node of the current node
TypeNumberRepresents the type of the node. The value of the property is TextNodeType integer constant.
EquationTypeNumberGet the equation type of the current node The value of the property is EquationNodeType integer constant.
StartIndexNumberGets the start index of the characters.
LengthNumberGets the length of the characters.
FontFontReturns the font of this object.
TextOptionsTextOptionsReturns the text options.

Methods

NameDescription
equalsDetermine whether the current equation node is equal to the specified node
toLaTeX
toMathML
addChildInsert a node of the specified type at the end of the child node list of the current node.
insertChildInserts a node of the specified type at the specified index position in the current node’s child node list.
insertAfterInserts the specified node after the current node.
insertBeforeInserts the specified node before the current node.
getChildReturns the node at the specified index among the children of the current node.
removeRemoves itself from the parent.
removeChildRemoves the specified node from the current node’s children.
removeAllChildrenRemoves all the child nodes of the current node.
setWordArtStyleSets the preset WordArt style.

Only for the text of shape/chart. |

MatrixEquationNode.BaseJc property

This attribute specifies the justification of the matrix. Text outside of the matrix can be aligned with the bottom, top, or center of a matrix function. Default, the matrix assumes center justification. The value of the property is EquationVerticalJustificationType integer constant.

Type: Number

MatrixEquationNode.IsHidePlaceholder property

This attribute specifies the Hide Placeholders property on a matrix. When this property is on, placeholders do not appear in the matrix.Default, placeholders do appear such that the locations where text can be inserted are made visible.

Type: boolean

MatrixEquationNode.ParentNode property

Specifies the parent node of the current node

Type: EquationNode

MatrixEquationNode.Type property

Represents the type of the node. The value of the property is TextNodeType integer constant.

Type: Number

MatrixEquationNode.EquationType property

Get the equation type of the current node The value of the property is EquationNodeType integer constant.

Type: Number

MatrixEquationNode.StartIndex property

Gets the start index of the characters.

Type: Number

MatrixEquationNode.Length property

Gets the length of the characters.

Type: Number

MatrixEquationNode.Font property

Returns the font of this object.

Type: Font

MatrixEquationNode.TextOptions property

Returns the text options.

Type: TextOptions

equals(obj)

Determine whether the current equation node is equal to the specified node

ParameterTypeDescription
objObjectThe 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.

ParameterTypeDescription
equationTypeNumberA 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.

ParameterTypeDescription
nodeEquationNodeThe 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.

ParameterTypeDescription
indexNumberindex value
equationTypeNumberA 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.

ParameterTypeDescription
equationTypeNumberA 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.

ParameterTypeDescription
equationTypeNumberA 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.

ParameterTypeDescription
indexNumberIndex 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.

ParameterTypeDescription
nodeEquationNodeNode to be deleted.

removeChild(index) (2 of 2)

Removes the node at the specified index from the current node’s children.

ParameterTypeDescription
indexNumberIndex 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.

ParameterTypeDescription
styleNumberA PresetWordArtStyle value. The preset WordArt style.