itable-ag凯发旗舰厅



com.spire.doc.interfaces
interface itable

all superinterfaces:
icompositeobject, idocumentobject
all known implementing classes:
table

public interface itable
extends icompositeobject

represents a table in a document.


method summary
 tablerow addrow()
          adds a new row to table.
 tablerow addrow(boolean iscopyformat)
          adds new row to table.
 tablerow addrow(boolean iscopyformat, boolean autopopulatecells)
          adds a row to table with copy format option
 void applyhorizontalmerge(int rowindex, int startcellindex, int endcellindex)
          applies horizontal merging for cells of table row.
 void applyverticalmerge(int columnindex, int startrowindex, int endrowindex)
          applies the vertical merge for table cells.
 tablecell get(int row, int column)
          gets cell by row/column indexes.
 tablerow getfirstrow()
          gets the last row in table.
 float getindentfromleft()
          gets indent from left for the table.
 tablecell getlastcell()
          gets the last cell in last row.
 tablerow getlastrow()
          gets the last row in table.
 rowcollection getrows()
          gets row collection.
 rowformat gettableformat()
          gets the table format.
 float getwidth()
          returns table width.
 void removeabsposition()
          removes the absolute position data.
 void resetcells(int rowsnum, int columnsnum)
          resets rows / columns numbers.
 void resetcells(int rowsnum, int columnsnum, rowformat format, float cellwidth)
          resets rows / columns numbers.
 void setindentfromleft(float value)
          sets indent from left for the table.
 
methods inherited from interface com.spire.doc.interfaces.icompositeobject
getchildobjects
 
methods inherited from interface com.spire.doc.interfaces.idocumentobject
deepclone, getdocument, getdocumentobjecttype, getnextsibling, getowner, getprevioussibling, iscomposite
 
method detail

getrows

rowcollection getrows()
gets row collection.

gettableformat

rowformat gettableformat()
gets the table format.
returns:
the table format.

getlastcell

tablecell getlastcell()
gets the last cell in last row.
returns:
the cell

getfirstrow

tablerow getfirstrow()
gets the last row in table.
returns:
the row

getlastrow

tablerow getlastrow()
gets the last row in table.
returns:
the row

get

tablecell get(int row,
              int column)
gets cell by row/column indexes.
parameters:
row - the index of the specified row
column - the index of the specified column
returns:
the cell

getwidth

float getwidth()
returns table width.
returns:
the width

addrow

tablerow addrow()
adds a new row to table.
returns:
the row

addrow

tablerow addrow(boolean iscopyformat)
adds new row to table.
parameters:
iscopyformat - copy the format from the previous row or not
returns:
the row

addrow

tablerow addrow(boolean iscopyformat,
                boolean autopopulatecells)
adds a row to table with copy format option
parameters:
iscopyformat - indicates whether copy format from previous row or not
autopopulatecells - if it specifies auto populate cells, set to true.
returns:
the row

resetcells

void resetcells(int rowsnum,
                int columnsnum)
resets rows / columns numbers.
parameters:
rowsnum - the rows number.
columnsnum - the columns number.

resetcells

void resetcells(int rowsnum,
                int columnsnum,
                rowformat format,
                float cellwidth)
resets rows / columns numbers.
parameters:
rowsnum - the rows num.
columnsnum - the columns num.
format - the format.
cellwidth - width of the cell.

applyverticalmerge

void applyverticalmerge(int columnindex,
                        int startrowindex,
                        int endrowindex)
applies the vertical merge for table cells.
parameters:
columnindex - index of the column.
startrowindex - start index of the row.
endrowindex - end index of the row.

applyhorizontalmerge

void applyhorizontalmerge(int rowindex,
                          int startcellindex,
                          int endcellindex)
applies horizontal merging for cells of table row.
parameters:
rowindex - index of the row.
startcellindex - start index of the cell.
endcellindex - end index of the cell.

getindentfromleft

float getindentfromleft()
gets indent from left for the table.
returns:
the indent

setindentfromleft

void setindentfromleft(float value)
sets indent from left for the table.
parameters:
value - the indent

removeabsposition

void removeabsposition()
removes the absolute position data. if table has absolute position in the document, all position data will be erased.


网站地图