OfficeMathDisplayType Enumeration |
Specifies the display format type of the equation.
Namespace:
Aspose.Words.Math
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic enum OfficeMathDisplayType
Public Enumeration OfficeMathDisplayType
public enum class OfficeMathDisplayType
type OfficeMathDisplayType
Members
| Member name | Value | Description |
---|
| Display | 0 |
The Office Math is displayed on its own line.
|
| Inline | 1 |
The Office Math is displayed inline with the text.
|
ExamplesShows how to set office math display formatting.
Document doc = new Document(MyDir + "Office math.docx");
OfficeMath officeMath = (OfficeMath) doc.GetChild(NodeType.OfficeMath, 0, true);
Assert.AreEqual(MathObjectType.OMathPara, officeMath.MathObjectType);
Assert.AreEqual(NodeType.OfficeMath, officeMath.NodeType);
Assert.AreEqual(officeMath.ParentNode, officeMath.ParentParagraph);
Assert.IsNull(officeMath.EquationXmlEncoding);
officeMath.DisplayType = OfficeMathDisplayType.Display;
officeMath.Justification = OfficeMathJustification.Left;
doc.Save(ArtifactsDir + "Shape.OfficeMath.docx");
See Also