tablecell-ag凯发旗舰厅



com.spire.doc
class tablecell

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.documentcontainer
                      extended by com.spire.doc.body
                          extended by com.spire.doc.tablecell
all implemented interfaces:
ibody, icompositeobject, idocumentobject
direct known subclasses:
structuredocumenttagcell

public class tablecell
extends body
implements icompositeobject

constructor summary
tablecell(idocument document)
          initializes a new instance of the tablecell class.
 
method summary
 documentobject deepclone()
          clones this instance.
 cellformat getcellformat()
          gets cell format.
 int getcellindex()
          get cell index in the table row.
 cellwidthtype getcellwidthtype()
          gets cell width type
 documentobjecttype getdocumentobjecttype()
          gets the type of the document object.
 short getgridspan()
          get grid span
 tablerow getownerrow()
          gets owner row of the cell.
 float getscaling()
          gets the cell scaling.
 float getwidth()
          gets cell width.
 void setcellwidth(float width, cellwidthtype widthtype)
          set cell width
 void setcellwidthtype(cellwidthtype value)
          sets cell width type
 void setscaling(float value)
          sets the cell scaling.
 void setwidth(float value)
          sets cell width.
 void splitcell(int columnnum, int rownum)
          the one cell splits into two or more cells.
 
methods inherited from class com.spire.doc.body
addparagraph, addtable, addtable, ensureminimum, getchildobjects, getfirstparagraph, getformfields, getlastparagraph, getparagraphs, gettables, hassdt, insertxhtml, insertxhtml, insertxhtml, isvalidxhtml, isvalidxhtml
 
methods inherited from class com.spire.doc.documentobject
getfirstchild, getlastchild, getnextsibling, getowner, getprevioussibling, iscomposite, tostring
 
methods inherited from class com.spire.doc.ownerholder
getdocument
 
methods inherited from interface com.spire.doc.interfaces.icompositeobject
getchildobjects
 
methods inherited from interface com.spire.doc.interfaces.idocumentobject
getdocument, getnextsibling, getowner, getprevioussibling, iscomposite
 
constructor detail

tablecell

public tablecell(idocument document)
initializes a new instance of the tablecell class.
parameters:
document - the document
method detail

getgridspan

public short getgridspan()
get grid span
returns:
short

getdocumentobjecttype

public documentobjecttype getdocumentobjecttype()
gets the type of the document object.
specified by:
getdocumentobjecttype in interface idocumentobject
overrides:
getdocumentobjecttype in class body
returns:
the type of the document object.

getownerrow

public tablerow getownerrow()
gets owner row of the cell.
returns:
tablerow

getcellformat

public cellformat getcellformat()
gets cell format.
returns:
cellformat

getwidth

public float getwidth()
gets cell width.
returns:
float

setwidth

public void setwidth(float value)
sets cell width.
parameters:
value - float

getcellwidthtype

public cellwidthtype getcellwidthtype()
gets cell width type
returns:
cellwidthtype

setcellwidthtype

public void setcellwidthtype(cellwidthtype value)
sets cell width type
parameters:
value - cellwidthtype

getscaling

public float getscaling()
gets the cell scaling.
returns:
the scaling.

setscaling

public void setscaling(float value)
sets the cell scaling.
parameters:
value - the scaling.

deepclone

public documentobject deepclone()
clones this instance.
specified by:
deepclone in interface idocumentobject
overrides:
deepclone in class documentobject
returns:
documentobject

getcellindex

public int getcellindex()
get cell index in the table row.
returns:
cell index

setcellwidth

public void setcellwidth(float width,
                         cellwidthtype widthtype)
set cell width
parameters:
width - width
widthtype - widthtype

splitcell

public void splitcell(int columnnum,
                      int rownum)
the one cell splits into two or more cells.
parameters:
columnnum - the split column number. must be greater than or equal to 1 is only valid.
rownum - the split row number. must be greater than or equal to 1 is only valid.


网站地图