Class DelimiterEquationNode
Contents
[
Hide
]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.
public class DelimiterEquationNode : EquationNode
Properties
| Name | Description |
|---|---|
| BeginChar { get; set; } | Delimiter beginning character. |
| DelimiterShape { get; set; } | Specifies the shape of delimiters in the delimiter object. |
| EndChar { get; set; } | Delimiter ending character. |
| EquationType { get; } | Get the equation type of the current node(Inherited from EquationNode.) |
| Font { get; } | Returns the font of this object.(Inherited from FontSetting.) |
| Length { get; } | Gets the length of the characters.(Inherited from FontSetting.) |
| NaryGrow { get; set; } | Specifies whether the delimiter should automatically expand and contract with the height of the formula. |
| ParentNode { get; set; } | Specifies the parent node of the current node(Inherited from EquationNode.) |
| SeparatorChar { get; set; } | Delimiter separator character. |
| StartIndex { get; } | Gets the start index of the characters.(Inherited from FontSetting.) |
| TextOptions { get; } | Returns the text options.(Inherited from FontSetting.) |
| override Type { get; } | Represents the type of the node.(Inherited from EquationNode.) |
Methods
| Name | Description |
|---|---|
| AddChild(EquationNode) | Inserts the specified node at the end of the current node’s list of child nodes.(Inherited from EquationNode.) |
| AddChild(EquationNodeType) | Insert a node of the specified type at the end of the child node list of the current node.(Inherited from EquationNode.) |
| override Equals(object) | Determine whether the current equation node is equal to the specified node |
| GetChild(int) | Returns the node at the specified index among the children of the current node.(Inherited from EquationNode.) |
| InsertAfter(EquationNodeType) | Inserts the specified node after the current node.(Inherited from EquationNode.) |
| InsertBefore(EquationNodeType) | Inserts the specified node before the current node.(Inherited from EquationNode.) |
| InsertChild(int, EquationNodeType) | Inserts a node of the specified type at the specified index position in the current node’s child node list.(Inherited from EquationNode.) |
| Remove() | Removes itself from the parent.(Inherited from EquationNode.) |
| RemoveAllChildren() | Removes all the child nodes of the current node.(Inherited from EquationNode.) |
| RemoveChild(EquationNode) | Removes the specified node from the current node’s children.(Inherited from EquationNode.) |
| RemoveChild(int) | Removes the node at the specified index from the current node’s children.(Inherited from EquationNode.) |
| SetWordArtStyle(PresetWordArtStyle) | Sets the preset WordArt style.(Inherited from FontSetting.) |
| ToLaTeX() | Convert this equtation to LaTeX expression.(Inherited from EquationNode.) |
| ToMathML() | Convert this equtation to MathML expression.(Inherited from EquationNode.) |
Examples
using System;
using Aspose.Cells;
using Aspose.Cells.Drawing;
using Aspose.Cells.Drawing.Equations;
namespace AsposeCellsExamples
{
public class EquationsClassDelimiterEquationNodeDemo
{
public static void Run()
{
Workbook workbook = new Workbook();
TextBox textBox = workbook.Worksheets[0].Shapes.AddEquation(3, 0, 3, 0, 100, 200);
EquationNode mathNode = textBox.GetEquationParagraph().GetChild(0);
// Create a delimiter node with custom settings
DelimiterEquationNode node = (DelimiterEquationNode)mathNode.AddChild(EquationNodeType.Delimiter);
node.DelimiterShape = EquationDelimiterShapeType.Match;
node.NaryGrow = false;
node.SeparatorChar = "!";
node.BeginChar = "#";
node.EndChar = "*";
// Add a fraction as base content
EquationNode baseNode = node.AddChild(EquationNodeType.Base);
FractionEquationNode fraction = (FractionEquationNode)baseNode.AddChild(EquationNodeType.Fraction);
// Add numerator
EquationComponentNode numerator = (EquationComponentNode)fraction.AddChild(EquationNodeType.Numerator);
TextRunEquationNode textRun = (TextRunEquationNode)numerator.AddChild(EquationNodeType.Text);
textRun.Text = "A";
// Add denominator
EquationComponentNode denominator = (EquationComponentNode)fraction.AddChild(EquationNodeType.Denominator);
textRun = (TextRunEquationNode)denominator.AddChild(EquationNodeType.Text);
textRun.Text = "B";
// Add another base node with text
baseNode = node.AddChild(EquationNodeType.Base);
textRun = (TextRunEquationNode)baseNode.AddChild(EquationNodeType.Text);
textRun.Text = "a";
// Save the workbook
workbook.Save("DelimiterEquationNodeDemo.xlsx");
}
}
}
See Also
- class EquationNode
- namespace Aspose.Cells.Drawing.Equations
- assembly Aspose.Cells