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.

class DelimiterEquationNode extends EquationNode;

Constructors

NameDescription
constructor(EquationNode)Constructs from a parent object convertible to this.

Methods

MethodDescription
getBeginChar()Delimiter beginning character.
setBeginChar(string)Delimiter beginning character.
getEndChar()Delimiter ending character.
setEndChar(string)Delimiter ending character.
getNaryGrow()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.
setNaryGrow(boolean)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.
getSeparatorChar()Delimiter separator character.
setSeparatorChar(string)Delimiter separator character.
getDelimiterShape()Specifies the shape of delimiters in the delimiter object.
setDelimiterShape(EquationDelimiterShapeType)Specifies the shape of delimiters in the delimiter object.
getStartIndex()Gets the start index of the characters.
getLength()Gets the length of the characters.
getFont()Returns the font of this object.
getTextOptions()Returns the text options.
setWordArtStyle(PresetWordArtStyle)Sets the preset WordArt style.
getParentNode()Specifies the parent node of the current node
setParentNode(EquationNode)Specifies the parent node of the current node
getType()Represents the type of the node.
getEquationType()Get the equation type of the current node
addChild(EquationNodeType)Insert a node of the specified type at the end of the child node list of the current node.
addChild(EquationNode)Inserts the specified node at the end of the current node’s list of child nodes.
insertChild(number, EquationNodeType)Inserts a node of the specified type at the specified index position in the current node’s child node list.
insertAfter(EquationNodeType)Inserts the specified node after the current node.
insertBefore(EquationNodeType)Inserts the specified node before the current node.
getChild(number)Returns the node at the specified index among the children of the current node.
remove()Removes itself from the parent.
removeChild(EquationNode)Removes the specified node from the current node’s children.
removeChild(number)Removes the node at the specified index from the current node’s children.
removeAllChildren()Removes all the child nodes of the current node.
static createNode(EquationNodeType, Workbook, EquationNode)Create a node of the specified type.

constructor(EquationNode)

Constructs from a parent object convertible to this.

constructor(obj: EquationNode);

Parameters:

ParameterTypeDescription
objEquationNodeThe parent object.

getBeginChar()

Delimiter beginning character.

getBeginChar() : string;

Remarks

It should be noted that this property only accepts one character, and if multiple characters are passed in, only the first character is accepted.

setBeginChar(string)

Delimiter beginning character.

setBeginChar(value: string) : void;

Parameters:

ParameterTypeDescription
valuestringThe value to set.

Remarks

It should be noted that this property only accepts one character, and if multiple characters are passed in, only the first character is accepted.

getEndChar()

Delimiter ending character.

getEndChar() : string;

Remarks

It should be noted that this property only accepts one character, and if multiple characters are passed in, only the first character is accepted.

setEndChar(string)

Delimiter ending character.

setEndChar(value: string) : void;

Parameters:

ParameterTypeDescription
valuestringThe value to set.

Remarks

It should be noted that this property only accepts one character, and if multiple characters are passed in, only the first character is accepted.

getNaryGrow()

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.

getNaryGrow() : boolean;

setNaryGrow(boolean)

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.

setNaryGrow(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

getSeparatorChar()

Delimiter separator character.

getSeparatorChar() : string;

Remarks

It should be noted that this property only accepts one character, and if multiple characters are passed in, only the first character is accepted.

setSeparatorChar(string)

Delimiter separator character.

setSeparatorChar(value: string) : void;

Parameters:

ParameterTypeDescription
valuestringThe value to set.

Remarks

It should be noted that this property only accepts one character, and if multiple characters are passed in, only the first character is accepted.

getDelimiterShape()

Specifies the shape of delimiters in the delimiter object.

getDelimiterShape() : EquationDelimiterShapeType;

Returns

EquationDelimiterShapeType

setDelimiterShape(EquationDelimiterShapeType)

Specifies the shape of delimiters in the delimiter object.

setDelimiterShape(value: EquationDelimiterShapeType) : void;

Parameters:

ParameterTypeDescription
valueEquationDelimiterShapeTypeThe value to set.

getStartIndex()

Gets the start index of the characters.

getStartIndex() : number;

getLength()

Gets the length of the characters.

getLength() : number;

getFont()

Returns the font of this object.

getFont() : Font;

Returns

Font

getTextOptions()

Returns the text options.

getTextOptions() : TextOptions;

Returns

TextOptions

setWordArtStyle(PresetWordArtStyle)

Sets the preset WordArt style.

setWordArtStyle(style: PresetWordArtStyle) : void;

Parameters:

ParameterTypeDescription
stylePresetWordArtStyleThe preset WordArt style.

Remarks

Only for the text of shape/chart.

getParentNode()

Specifies the parent node of the current node

getParentNode() : EquationNode;

Returns

EquationNode

setParentNode(EquationNode)

Specifies the parent node of the current node

setParentNode(value: EquationNode) : void;

Parameters:

ParameterTypeDescription
valueEquationNodeThe value to set.

getType()

Represents the type of the node.

getType() : TextNodeType;

Returns

TextNodeType

getEquationType()

Get the equation type of the current node

getEquationType() : EquationNodeType;

Returns

EquationNodeType

addChild(EquationNodeType)

Insert a node of the specified type at the end of the child node list of the current node.

addChild(equationType: EquationNodeType) : EquationNode;

Parameters:

ParameterTypeDescription
equationTypeEquationNodeTypeTypes 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(EquationNode)

Inserts the specified node at the end of the current node’s list of child nodes.

addChild(node: EquationNode) : void;

Parameters:

ParameterTypeDescription
nodeEquationNodeThe specified node

insertChild(number, EquationNodeType)

Inserts a node of the specified type at the specified index position in the current node’s child node list.

insertChild(index: number, equationType: EquationNodeType) : EquationNode;

Parameters:

ParameterTypeDescription
indexnumberindex value
equationTypeEquationNodeTypeTypes 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(EquationNodeType)

Inserts the specified node after the current node.

insertAfter(equationType: EquationNodeType) : EquationNode;

Parameters:

ParameterTypeDescription
equationTypeEquationNodeTypeTypes 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(EquationNodeType)

Inserts the specified node before the current node.

insertBefore(equationType: EquationNodeType) : EquationNode;

Parameters:

ParameterTypeDescription
equationTypeEquationNodeTypeTypes 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(number)

Returns the node at the specified index among the children of the current node.

getChild(index: number) : EquationNode;

Parameters:

ParameterTypeDescription
indexnumberIndex of the node

Returns

Returns the corresponding node if the specified node exists, otherwise returns null.

remove()

Removes itself from the parent.

remove() : void;

removeChild(EquationNode)

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

removeChild(node: EquationNode) : void;

Parameters:

ParameterTypeDescription
nodeEquationNodeNode to be deleted.

removeChild(number)

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

removeChild(index: number) : void;

Parameters:

ParameterTypeDescription
indexnumberIndex of the node

removeAllChildren()

Removes all the child nodes of the current node.

removeAllChildren() : void;

createNode(EquationNodeType, Workbook, EquationNode)

Create a node of the specified type.

static createNode(equationType: EquationNodeType, workbook: Workbook, parent: EquationNode) : EquationNode;

Parameters:

ParameterTypeDescription
equationTypeEquationNodeTypeTypes of Equation Nodes
workbookWorkbookThe workbook object associated with the equation
parentEquationNodeThe parent node where this node is located

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.