Enum EquationCombiningCharacterType

EquationCombiningCharacterType enumeration

Type of combining characters.

public enum EquationCombiningCharacterType

Values

NameValueDescription
Unknown-1Use unknown type when not found in existing type.
DotAbove0“̇” Unicode: u0307 Combining Dot Above
Diaeresis1“̈” Unicode: u0308 Combining Diaeresis
ThreeDotsAbove2“⃛” Unicode: u20db Combining Three Dots Above
CircumflexAccent3“̂” Unicode: u0302 Combining Circumflex Accent
Caron4“̌” Unicode: u030c Combining Caron
AcuteAccent5“́” Unicode: u0301 Combining Acute Accent
GraveAccent6“̀” Unicode: u0300 Combining Grave Accent
Breve7“̆” Unicode: u0306 Combining Combining Breve
Tilde8“̃” Unicode: u0303 Combining Tilde
Overline9“̅” Unicode: u0305 Combining Overline
DoubleOverline10“̿” Unicode: u033f Combining Double Overline
TopCurlyBracket11“⏞” Unicode: u23de Combining Top Curly Bracket
BottomCurlyBracket12“⏟” Unicode: u23df Combining Bottom Curly Bracket
LeftArrowAbove13“⃖” Unicode: u20d6 Combining Left Arrow Above
RightArrowAbove14“⃗” Unicode: u20d7 Combining Right Arrow Above
LeftRightArrowAbove15“⃡” Unicode: u20e1 Combining Left Right Arrow Above
LeftHarpoonAbove16“⃐” Unicode: u20d0 Combining Left Harpoon Above
RightHarpoonAbove17“⃑” Unicode: u20d1 Combining Right Harpoon Above
LeftwardsArrow18“←” Unicode: u2190 Leftwards Arrow
RightwardsArrow19“→” Unicode: u2192 Rightwards Arrow
LeftRightArrow20“↔” Unicode: u2194 Left Right Arrow
LeftwardsDoubleArrow21“⇐” Unicode: u21d0 Leftwards Double Arrow
RightwardsDoubleArrow22“⇒” Unicode: u21d2 Rightwards Double Arrow
LeftRightDoubleArrow23“⇔” Unicode: u21d4 Left Right Double Arrow

Examples

using System;
using Aspose.Cells;
using Aspose.Cells.Drawing;
using Aspose.Cells.Drawing.Equations;

namespace AsposeCellsExamples
{
    public class EquationsClassEquationCombiningCharacterTypeDemo
    {
        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);
            GroupCharacterEquationNode node = (GroupCharacterEquationNode)mathNode.AddChild(EquationNodeType.GroupChr);
            node.Position = EquationCharacterPositionType.Top;
            node.ChrType = EquationCombiningCharacterType.RightwardsDoubleArrow;

            EquationNode subBase = node.AddChild(EquationNodeType.Base);
            TextRunEquationNode textRun = (TextRunEquationNode)(subBase.AddChild(EquationNodeType.Text));
            textRun.Text = "abc";

            string resultFile = "GroupCharacterEquationTest.xlsx";
            workbook.Save(resultFile);

            // Verify the saved file
            Workbook workbook2 = new Workbook(resultFile);
            TextBox textBoxRead = (TextBox)workbook2.Worksheets[0].Shapes[0];
            EquationNode mathNode2 = textBoxRead.GetEquationParagraph().GetChild(0);
            GroupCharacterEquationNode node2 = (GroupCharacterEquationNode)mathNode2.GetChild(0);

            Console.WriteLine("Equation Type: " + node2.EquationType);
            Console.WriteLine("Position: " + node2.Position);
            Console.WriteLine("Character Type: " + node2.ChrType);
            Console.WriteLine("Group Character: " + node2.GroupChr);

            EquationNode baseNode = node2.GetChild(0);
            TextRunEquationNode textNode = (TextRunEquationNode)baseNode.GetChild(0);
            Console.WriteLine("Text Content: " + textNode.Text);
        }
    }
}

See Also