public class OfficeMath extends CompositeNode
OfficeMath instances and some other nodes.
In this version of Aspose.Words, OfficeMath nodes do not provide public methods and properties to create or modify a OfficeMath object. In this version you are not able to instantiate N:Aspose.Words.Math nodes or modify existing except deleting them.
OfficeMath can only be a child of Paragraph.
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(DocumentVisitor visitor)
Accepts a visitor.
|
void |
clearRunAttrs() |
java.lang.Object |
fetchInheritedRunAttr(int fontAttr) |
java.lang.Object |
getDirectRunAttr(int fontAttr) |
int |
getDisplayType()
Gets/sets Office Math display format type which represents whether an equation is displayed inline with the text or displayed on its own line.
|
DocumentBase |
getDocument_IInline() |
java.nio.charset.Charset |
getEquationXmlEncoding()
Gets/sets an encoding that was used to encode equation XML, if this office math object is read from equation XML.
|
int |
getJustification()
Gets/sets Office Math justification.
|
int |
getMathObjectType()
Gets type
getMathObjectType() of this Office Math object. |
OfficeMathRenderer |
getMathRenderer()
Creates and returns an object that can be used to render this equation into an image.
|
int |
getNodeType()
Returns NodeType.OfficeMath.
|
Paragraph |
getParentParagraph_IInline() |
Paragraph |
getParentParagraph()
Retrieves the parent
Paragraph of this node. |
void |
removeMoveRevisions() |
void |
removeRunAttr(int key) |
void |
setDisplayType(int value)
Gets/sets Office Math display format type which represents whether an equation is displayed inline with the text or displayed on its own line.
|
void |
setEquationXmlEncoding(java.nio.charset.Charset value)
Gets/sets an encoding that was used to encode equation XML, if this office math object is read from equation XML.
|
void |
setJustification(int value)
Gets/sets Office Math justification.
|
void |
setRunAttr(int fontAttr,
java.lang.Object value) |
acceptChildren, acceptCore, appendChild, coreRemoveSelfOnly, getChild, getChildNodes, getChildNodes, getContainer, getCount, getCurrentNode, getFirstChild, getLastChild, getNextMatchingNode, getText, hasChildNodes, indexOf, insertAfter, insertBefore, isComposite, iterator, prependChild, removeAllChildren, removeChild, removeSmartTags, selectNodes, selectSingleNodedd, deepClone, getAncestor, getAncestor, getCustomNodeId, getDocument, getNextSibling, getParentNode, getPreviousSibling, getRange, memberwiseClone, nextPreOrder, nodeTypeToString, previousPreOrder, remove, setCustomNodeId, toString, toString, toString, visitorActionToBoolpublic boolean accept(DocumentVisitor visitor) throws java.lang.Exception
Enumerates over this node and all of its children. Each node calls a corresponding method on DocumentVisitor.
For more info see the Visitor design pattern.
public OfficeMathRenderer getMathRenderer() throws java.lang.Exception
This method just invokes the OfficeMathRenderer constructor and passes this object as a parameter.
java.lang.Exceptionpublic java.lang.Object getDirectRunAttr(int fontAttr)
public java.lang.Object fetchInheritedRunAttr(int fontAttr)
public void setRunAttr(int fontAttr,
java.lang.Object value)
public void removeRunAttr(int key)
public void clearRunAttrs()
public int getNodeType()
getNodeType in class NodeNodeType constants.public Paragraph getParentParagraph()
Paragraph of this node.Paragraph value.public Paragraph getParentParagraph_IInline()
public DocumentBase getDocument_IInline()
public int getMathObjectType()
getMathObjectType() of this Office Math object.getMathObjectType() of this Office Math object. The returned value is one of MathObjectType constants.public java.nio.charset.Charset getEquationXmlEncoding()
Charset value.public void setEquationXmlEncoding(java.nio.charset.Charset value)
value - The corresponding Charset value.public int getJustification()
Justification cannot be set to the Office Math with display format type OfficeMathDisplayType.INLINE.
Inline justification cannot be set to the Office Math with display format type OfficeMathDisplayType.DISPLAY.
Corresponding getDisplayType() / setDisplayType(int) has to be set before setting Office Math justification.
int value. The returned value is one of OfficeMathJustification constants.public void setJustification(int value)
Justification cannot be set to the Office Math with display format type OfficeMathDisplayType.INLINE.
Inline justification cannot be set to the Office Math with display format type OfficeMathDisplayType.DISPLAY.
Corresponding getDisplayType() / setDisplayType(int) has to be set before setting Office Math justification.
value - The corresponding int value. The value must be one of OfficeMathJustification constants.public int getDisplayType()
Display format type has effect for top level Office Math only.
Returned display format type is always OfficeMathDisplayType.INLINE for nested Office Math.
int value. The returned value is one of OfficeMathDisplayType constants.public void setDisplayType(int value)
Display format type has effect for top level Office Math only.
Returned display format type is always OfficeMathDisplayType.INLINE for nested Office Math.
value - The corresponding int value. The value must be one of OfficeMathDisplayType constants.public void removeMoveRevisions()