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 objects.


Constructor Summary
CellCollection(TableRow owner)
          Initializes a new instance of the class.
 
Method Summary
 int add(TableCell cell)
          Adds the specified cell.
 TableCell get(int index)
          Gets the 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 class.

Parameters:
owner - The owner.
Method Detail

get

public TableCell get(int index)
Gets the at the specified index.

Overrides:
get in class DocumentObjectCollection
Parameters:
index -
Returns:

add

public int add(TableCell cell)
Adds the specified cell.

Parameters:
cell - The cell.
Returns:

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:

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.