officemath-ag凯发旗舰厅



com.spire.doc.fields.omath
class officemath

java.lang.object
  extended by com.spire.doc.ownerholder
      extended by com.spire.doc.documents.xml.documentserializable
          extended by com.spire.doc.documentobject
              extended by com.spire.doc.documentbase
                  extended by com.spire.doc.fields.paragraphbase
                      extended by 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


constructor summary
officemath(document doc)
          initializes a new instance of the class.
officemath(document doc, mathobject officemathelement)
          initializes a new instance of the class.
officemath(document doc, mathobject officemathelement, characterformat characterformat)
          initializes a new instance of the class.
 
method summary
 void fromlatexmathcode(java.lang.string latexmathcode)
          froms the latex math code.
 void frommathmlcode(java.lang.string mathmlcode)
          froms the mathml code.
 documentobjectcollection getchildobjects()
          gets the child objects of the entity.
 documentobjecttype getdocumentobjecttype()
          gets the type of the document object.
 java.awt.image.bufferedimage saveasimage(imagetype imagetype)
          save the officemath object as image
 java.lang.string tomathmlcode()
          to the mathml code.
 
methods inherited from class com.spire.doc.fields.paragraphbase
applycharacterformat, applystyle, getancestor, getcharacterformat, getownerparagraph, getstylename, isdeleterevision, isinsertrevision
 
methods inherited from class com.spire.doc.documentobject
deepclone, getfirstchild, getlastchild, getnextsibling, getowner, getprevioussibling, iscomposite, tostring
 
methods inherited from class com.spire.doc.ownerholder
getdocument
 
methods inherited from interface com.spire.doc.interfaces.idocumentobject
deepclone, getdocument, getnextsibling, getowner, getprevioussibling, iscomposite
 
methods inherited from interface com.spire.doc.documents.irunattrsource
clearrunattrs, fetchinheritedrunattr, getdirectrunattr, getdirectrunattrbyindex, getdirectrunattrscount, setrunattr
 
constructor detail

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.
method detail

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


网站地图