java.lang.Object
com.aspose.words.OfficeMathDisplayType
public class OfficeMathDisplayType
- extends java.lang.Object
Utility class containing constants.
Specifies the display format type of the equation.
Example:
Shows how to set office math display formatting.
Document doc = new Document(getMyDir() + "Office math.docx");
OfficeMath officeMath = (OfficeMath) doc.getChild(NodeType.OFFICE_MATH, 0, true);
// OfficeMath nodes that are children of other OfficeMath nodes are always inline
// The node we are working with is a base node, so its location and display type can be changed
Assert.assertEquals(officeMath.getMathObjectType(), MathObjectType.O_MATH_PARA);
Assert.assertEquals(officeMath.getNodeType(), NodeType.OFFICE_MATH);
Assert.assertEquals(officeMath.getParentParagraph(), officeMath.getParentNode());
// Used by OOXML and WML formats
Assert.assertNull(officeMath.getEquationXmlEncoding());
// We can change the location and display type of the OfficeMath node
officeMath.setDisplayType(OfficeMathDisplayType.DISPLAY);
officeMath.setJustification(OfficeMathJustification.LEFT);
doc.save(getArtifactsDir() + "Shape.OfficeMath.docx");
Field Summary |
static final int | DISPLAY = 0 | |
The Office Math is displayed on its own line.
|
static final int | INLINE = 1 | |
The Office Math is displayed inline with the text.
|
DISPLAY = 0 | |
public static final int DISPLAY |
-
The Office Math is displayed on its own line.
INLINE = 1 | |
public static final int INLINE |
-
The Office Math is displayed inline with the text.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.