cellcollection-ag凯发旗舰厅
com.spire.doc.collections
class cellcollection
java.lang.object
com.spire.doc.ownerholder
com.spire.doc.collections.collectionex
com.spire.doc.documents.xml.documentserializablecollection
com.spire.doc.collections.documentobjectcollection
com.spire.doc.collections.cellcollection
- all implemented interfaces:
- icollectionbase, idocumentobjectcollection, ixdlsserializablecollection, java.lang.iterable
public class cellcollection
- extends documentobjectcollection
represents a collection of tablecell
objects.
method summary |
int |
add(tablecell cell)
adds the specified cell. |
tablecell |
get(int index)
gets the tablecell at the specified index. |
int |
indexof(tablecell cell)
returns index of a specified cell in collection. |
void |
insert(int index,
tablecell cell)
inserts a specified table cell into collection. |
void |
remove(tablecell cell)
removes the specified cell. |
void |
removeat(int index)
removes the document object at the specified index from the collection. |
cellcollection
public cellcollection(tablerow owner)
- initializes a new instance of the cellcollection class.
- parameters:
owner
- the owner
get
public tablecell get(int index)
- gets the
tablecell
at the specified index.
- specified by:
get
in interface idocumentobjectcollection
- overrides:
get
in class documentobjectcollection
- parameters:
index
- index
- returns:
- tablecell object
add
public int add(tablecell cell)
- adds the specified cell.
- parameters:
cell
- the cell
- returns:
- int value
insert
public void insert(int index,
tablecell cell)
- inserts a specified table cell into collection.
- parameters:
index
- the indexcell
- the cell
indexof
public int indexof(tablecell cell)
- returns index of a specified cell in collection.
- parameters:
cell
- the cell
- returns:
- index
remove
public void remove(tablecell cell)
- removes the specified cell.
- parameters:
cell
- the cell
removeat
public void removeat(int index)
- removes the document object at the specified index from the collection.
- overrides:
removeat
in class documentobjectcollection
- parameters:
index
- the index.