officemath-凯发线上登陆下载网址
com.spire.doc.fields.omath
class officemath
java.lang.object
com.spire.doc.ownerholder
com.spire.doc.documents.xml.documentserializable
com.spire.doc.documentobject
com.spire.doc.documentbase
com.spire.doc.fields.paragraphbase
com.spire.doc.fields.omath.officemath
- all implemented interfaces:
- irunattrsource, icompositeobject, idocumentobject, iparagraphbase
public class officemath
- extends paragraphbase
- implements icompositeobject
defines the office math class such as function, equation
officemath
public officemath(document doc)
- initializes a new instance of the class.
- parameters:
doc - the document.
officemath
public officemath(document doc,
mathobject officemathelement)
- initializes a new instance of the class.
- parameters:
doc - the document.officemathelement - the office math element.
officemath
public officemath(document doc,
mathobject officemathelement,
characterformat characterformat)
- initializes a new instance of the class.
- parameters:
doc - the document.officemathelement - the office math element.characterformat - the character format.
getdocumentobjecttype
public documentobjecttype getdocumentobjecttype()
- gets the type of the document object.
- specified by:
getdocumentobjecttype in interface idocumentobject- specified by:
getdocumentobjecttype in class documentobject
- returns:
- the type of the document object.
frommathmlcode
public void frommathmlcode(java.lang.string mathmlcode)
- froms the mathml code.
- parameters:
mathmlcode - the math ml code.
fromlatexmathcode
public void fromlatexmathcode(java.lang.string latexmathcode)
- froms the latex math code.
- parameters:
latexmathcode - the latex math code.
saveasimage
public java.awt.image.bufferedimage saveasimage(imagetype imagetype)
- save the officemath object as image
- parameters:
imagetype -
- returns:
- bufferedimage
tomathmlcode
public java.lang.string tomathmlcode()
- to the mathml code.
- returns:
- string
getchildobjects
public documentobjectcollection getchildobjects()
- description copied from class:
paragraphbase
- gets the child objects of the entity.
- specified by:
getchildobjects in interface icompositeobject- overrides:
getchildobjects in class paragraphbase
- returns:
- documentobjectcollection