DelimiterEquationNode.SeparatorChar
DelimiterEquationNode.SeparatorChar property
Delimiter separator character.
public string SeparatorChar { get; 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.
Examples
using System;
using Aspose.Cells;
using Aspose.Cells.Drawing;
using Aspose.Cells.Drawing.Equations;
namespace AsposeCellsExamples
{
public class DelimiterEquationNodePropertySeparatorCharDemo
{
public static void Run()
{
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
TextBox textBox = worksheet.Shapes.AddEquation(0, 0, 0, 0, 100, 200);
EquationNode mathNode = textBox.GetEquationParagraph().GetChild(0);
DelimiterEquationNode delimiter = (DelimiterEquationNode)mathNode.AddChild(EquationNodeType.Delimiter);
delimiter.BeginChar = "{";
delimiter.EndChar = "}";
delimiter.SeparatorChar = "|";
delimiter.DelimiterShape = EquationDelimiterShapeType.Match;
string filePath = "DelimiterEquationExample.xlsx";
workbook.Save(filePath);
Workbook loadedWorkbook = new Workbook(filePath);
TextBox loadedTextBox = (TextBox)loadedWorkbook.Worksheets[0].Shapes[0];
DelimiterEquationNode loadedDelimiter = (DelimiterEquationNode)loadedTextBox.GetEquationParagraph()
.GetChild(0).GetChild(0);
Console.WriteLine("SeparatorChar: " + loadedDelimiter.SeparatorChar);
}
}
}
See Also
- class DelimiterEquationNode
- namespace Aspose.Cells.Drawing.Equations
- assembly Aspose.Cells