cellcollection-ag凯发旗舰厅



com.spire.doc.collections
class cellcollection

java.lang.object
  extended by com.spire.doc.ownerholder
      extended by com.spire.doc.collections.collectionex
          extended by com.spire.doc.documents.xml.documentserializablecollection
              extended by com.spire.doc.collections.documentobjectcollection
                  extended by 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.


constructor summary
cellcollection(tablerow owner)
          initializes a new instance of the cellcollection class.
 
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.
 
methods inherited from class com.spire.doc.collections.documentobjectcollection
add, clear, contains, getfirstitem, getlastitem, indexof, insert, remove
 
methods inherited from class com.spire.doc.collections.collectionex
getcount, iterator
 
methods inherited from class com.spire.doc.ownerholder
getdocument
 
methods inherited from interface com.spire.doc.interfaces.icollectionbase
getcount
 
methods inherited from interface com.spire.doc.interfaces.ixdlsserializablecollection
addnewitem, getcount, gettagitemnameex
 
constructor detail

cellcollection

public cellcollection(tablerow owner)
initializes a new instance of the cellcollection class.
parameters:
owner - the owner
method detail

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 index
cell - 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.


网站地图