com.spire.doc.collections
Class TableCollection

java.lang.Object
  extended by com.spire.doc.OwnerHolder
      extended by com.spire.doc.collections.DocumentSubsetCollection
          extended by com.spire.doc.collections.TableCollection
All Implemented Interfaces:
ICollectionBase, IDocumentObjectCollection, ITableCollection, java.lang.Iterable

public class TableCollection
extends DocumentSubsetCollection
implements ITableCollection

Represents a collection of objects.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.spire.doc.collections.DocumentSubsetCollection
DocumentSubsetCollection.SubSetEnumerator
 
Constructor Summary
TableCollection(BodyRegionCollection bodyItems)
          Initializes a new instance of the class.
 
Method Summary
 int add(ITable table)
          Adds a table to end of text body.
 boolean contains(ITable table)
          Determines whether the contains a specific value.
 Table get(int index)
          Gets the at the specified index.
 int indexOf(ITable table)
          Determines the index of a specific item in the .
 int insert(int index, ITable table)
          Inserts a table into collection at the specified index.
 void remove(ITable table)
          Removes the specified table.
 void removeAt(int index)
          Removes the table at the specified index from the collection.
 
Methods inherited from class com.spire.doc.collections.DocumentSubsetCollection
clear, getCount, getDocument, getOwner, iterator
 
Methods inherited from interface com.spire.doc.interfaces.ICollectionBase
getCount
 

Constructor Detail

TableCollection

public TableCollection(BodyRegionCollection bodyItems)
Initializes a new instance of the class.

Parameters:
bodyItems - The body items.
Method Detail

get

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

Specified by:
get in interface ITableCollection
Overrides:
get in class DocumentSubsetCollection
Parameters:
index -
Returns:

add

public int add(ITable table)
Adds a table to end of text body.

Specified by:
add in interface ITableCollection
Parameters:
table - The table.
Returns:

contains

public boolean contains(ITable table)
Determines whether the contains a specific value.

Specified by:
contains in interface ITableCollection
Parameters:
table - The table.
Returns:
If table found, set to true.

indexOf

public int indexOf(ITable table)
Determines the index of a specific item in the .

Specified by:
indexOf in interface ITableCollection
Parameters:
table - The table.
Returns:

insert

public int insert(int index,
                  ITable table)
Inserts a table into collection at the specified index.

Parameters:
index - The index.
table - The table.
Returns:

remove

public void remove(ITable table)
Removes the specified table.

Parameters:
table - The table.

removeAt

public void removeAt(int index)
Removes the table at the specified index from the collection.

Parameters:
index - The index.