Class EquationNode

Class EquationNode

Namespace: Aspose.Cells.Drawing.Equations
Assembly: Aspose.Cells.dll (25.2.0)

Abstract class for deriving other equation nodes.

public abstract class EquationNode : FontSetting

Inheritance

objectFontSettingEquationNode

Derived

AccentEquationNode, ArrayEquationNode, BarEquationNode, BorderBoxEquationNode, BoxEquationNode, DelimiterEquationNode, EquationComponentNode, EquationNodeParagraph, FractionEquationNode, FunctionEquationNode, GroupCharacterEquationNode, LimLowUppEquationNode, MathematicalEquationNode, MatrixEquationNode, NaryEquationNode, RadicalEquationNode, SubSupEquationNode, TextRunEquationNode, UnknowEquationNode

Inherited Members

FontSetting.SetWordArtStyle(PresetWordArtStyle), FontSetting.Type, FontSetting.StartIndex, FontSetting.Length, FontSetting.Font, FontSetting.TextOptions, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

EquationType

Get the equation type of the current node

public EquationNodeType EquationType { get; }

Property Value

EquationNodeType

ParentNode

Specifies the parent node of the current node

public EquationNode ParentNode { get; set; }

Property Value

EquationNode

Type

Represents the type of the node.

public override TextNodeType Type { get; }

Property Value

TextNodeType

Methods

AddChild(EquationNodeType)

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

public EquationNode AddChild(EquationNodeType equationType)

Parameters

equationType EquationNodeType

Types of Equation Nodes

Returns

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

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

public void AddChild(EquationNode node)

Parameters

node EquationNode

The specified node

CreateNode(EquationNodeType, Workbook, EquationNode)

Create a node of the specified type.

public static EquationNode CreateNode(EquationNodeType equationType, Workbook workbook, EquationNode parent)

Parameters

equationType EquationNodeType

Types of Equation Nodes

workbook Workbook

The workbook object associated with the equation

parent EquationNode

The parent node where this node is located

Returns

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.

Equals(object)

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

public override bool Equals(object obj)

Parameters

obj object

The specified node

Returns

bool

GetChild(int)

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

public EquationNode GetChild(int index)

Parameters

index int

Index of the node

Returns

EquationNode

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

InsertAfter(EquationNodeType)

Inserts the specified node after the current node.

public EquationNode InsertAfter(EquationNodeType equationType)

Parameters

equationType EquationNodeType

Types of Equation Nodes

Returns

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

Inserts the specified node before the current node.

public EquationNode InsertBefore(EquationNodeType equationType)

Parameters

equationType EquationNodeType

Types of Equation Nodes

Returns

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(int, EquationNodeType)

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

public EquationNode InsertChild(int index, EquationNodeType equationType)

Parameters

index int

index value

equationType EquationNodeType

Types of Equation Nodes

Returns

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.

public void Remove()

RemoveAllChildren()

Removes all the child nodes of the current node.

public void RemoveAllChildren()

RemoveChild(EquationNode)

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

public void RemoveChild(EquationNode node)

Parameters

node EquationNode

Node to be deleted.

RemoveChild(int)

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

public void RemoveChild(int index)

Parameters

index int

Index of the node

ToLaTeX()

Convert this equtation to LaTeX expression.

public string ToLaTeX()

Returns

string

ToMathML()

Convert this equtation to MathML expression.

public string ToMathML()

Returns

string