AccentEquationNode

AccentEquationNode class

This class specifies an accent equation, consisting of a base component and a combining diacritic.

class AccentEquationNode extends EquationNode;

Constructors

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

Properties

PropertyTypeDescription
accentCharacterstringThis attribute specifies the type of combining diacritical mark attached to the base of the accent function. The default accent character is U+0302. It is strongly recommended to use attribute AccentType to set accent character. Use this property setting if you cannot find the character you need in a known type.
accentCharacterTypeEquationCombiningCharacterTypeSpecify combining characters by type value.
startIndexnumberReadonly. Gets the start index of the characters.
lengthnumberReadonly. Gets the length of the characters.
fontFontReadonly. Returns the font of this object.
textOptionsTextOptionsReadonly. Returns the text options.
parentNodeEquationNodeSpecifies the parent node of the current node
equationTypeEquationNodeTypeReadonly. Get the equation type of the current node

Methods

MethodDescription
getAccentCharacter()@deprecated. Please use the ‘accentCharacter’ property instead. This attribute specifies the type of combining diacritical mark attached to the base of the accent function. The default accent character is U+0302. It is strongly recommended to use attribute AccentType to set accent character. Use this property setting if you cannot find the character you need in a known type.
setAccentCharacter(string)@deprecated. Please use the ‘accentCharacter’ property instead. This attribute specifies the type of combining diacritical mark attached to the base of the accent function. The default accent character is U+0302. It is strongly recommended to use attribute AccentType to set accent character. Use this property setting if you cannot find the character you need in a known type.
getAccentCharacterType()@deprecated. Please use the ‘accentCharacterType’ property instead. Specify combining characters by type value.
setAccentCharacterType(EquationCombiningCharacterType)@deprecated. Please use the ‘accentCharacterType’ property instead. Specify combining characters by type value.
isNull()Checks whether the implementation object is null.
getStartIndex()@deprecated. Please use the ‘startIndex’ property instead. Gets the start index of the characters.
getLength()@deprecated. Please use the ’length’ property instead. Gets the length of the characters.
getFont()@deprecated. Please use the ‘font’ property instead. Returns the font of this object.
getTextOptions()@deprecated. Please use the ’textOptions’ property instead. Returns the text options.
setWordArtStyle(PresetWordArtStyle)Sets the preset WordArt style.
getParentNode()@deprecated. Please use the ‘parentNode’ property instead. Specifies the parent node of the current node
setParentNode(EquationNode)@deprecated. Please use the ‘parentNode’ property instead. Specifies the parent node of the current node
getEquationType()@deprecated. Please use the ’equationType’ property instead. Get the equation type of the current node
toLaTeX()Convert this equtation to LaTeX expression.
toMathML()Convert this equtation to MathML expression.
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.
equals(Object)Determine whether the current equation node is equal to the specified node
getType()Represents the type of the node.

constructor(EquationNode)

Constructs from a parent object convertible to this.

constructor(obj: EquationNode);

Parameters:

ParameterTypeDescription
objEquationNodeThe parent object.

accentCharacter

This attribute specifies the type of combining diacritical mark attached to the base of the accent function. The default accent character is U+0302. It is strongly recommended to use attribute AccentType to set accent character. Use this property setting if you cannot find the character you need in a known type.

accentCharacter : 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.

accentCharacterType

Specify combining characters by type value.

accentCharacterType : EquationCombiningCharacterType;

startIndex

Readonly. Gets the start index of the characters.

startIndex : number;

length

Readonly. Gets the length of the characters.

length : number;

font

Readonly. Returns the font of this object.

font : Font;

textOptions

Readonly. Returns the text options.

textOptions : TextOptions;

parentNode

Specifies the parent node of the current node

parentNode : EquationNode;

equationType

Readonly. Get the equation type of the current node

equationType : EquationNodeType;

getAccentCharacter()

@deprecated. Please use the ‘accentCharacter’ property instead. This attribute specifies the type of combining diacritical mark attached to the base of the accent function. The default accent character is U+0302. It is strongly recommended to use attribute AccentType to set accent character. Use this property setting if you cannot find the character you need in a known type.

getAccentCharacter() : 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.

setAccentCharacter(string)

@deprecated. Please use the ‘accentCharacter’ property instead. This attribute specifies the type of combining diacritical mark attached to the base of the accent function. The default accent character is U+0302. It is strongly recommended to use attribute AccentType to set accent character. Use this property setting if you cannot find the character you need in a known type.

setAccentCharacter(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.

getAccentCharacterType()

@deprecated. Please use the ‘accentCharacterType’ property instead. Specify combining characters by type value.

getAccentCharacterType() : EquationCombiningCharacterType;

Returns

EquationCombiningCharacterType

setAccentCharacterType(EquationCombiningCharacterType)

@deprecated. Please use the ‘accentCharacterType’ property instead. Specify combining characters by type value.

setAccentCharacterType(value: EquationCombiningCharacterType) : void;

Parameters:

ParameterTypeDescription
valueEquationCombiningCharacterTypeThe value to set.

isNull()

Checks whether the implementation object is null.

isNull() : boolean;

getStartIndex()

@deprecated. Please use the ‘startIndex’ property instead. Gets the start index of the characters.

getStartIndex() : number;

getLength()

@deprecated. Please use the ’length’ property instead. Gets the length of the characters.

getLength() : number;

getFont()

@deprecated. Please use the ‘font’ property instead. Returns the font of this object.

getFont() : Font;

Returns

Font

getTextOptions()

@deprecated. Please use the ’textOptions’ property instead. 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()

@deprecated. Please use the ‘parentNode’ property instead. Specifies the parent node of the current node

getParentNode() : EquationNode;

Returns

EquationNode

setParentNode(EquationNode)

@deprecated. Please use the ‘parentNode’ property instead. Specifies the parent node of the current node

setParentNode(value: EquationNode) : void;

Parameters:

ParameterTypeDescription
valueEquationNodeThe value to set.

getEquationType()

@deprecated. Please use the ’equationType’ property instead. Get the equation type of the current node

getEquationType() : EquationNodeType;

Returns

EquationNodeType

toLaTeX()

Convert this equtation to LaTeX expression.

toLaTeX() : string;

toMathML()

Convert this equtation to MathML expression.

toMathML() : string;

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.

equals(Object)

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

equals(obj: Object) : boolean;

Parameters:

ParameterTypeDescription
objObjectThe specified node

getType()

Represents the type of the node.

getType() : TextNodeType;

Returns

TextNodeType