com.aspose.words
Class DataTableCollection

java.lang.Object
    extended by com.aspose.words.DataTableCollection
All Implemented Interfaces:
java.lang.Iterable

public class DataTableCollection 
extends java.lang.Object

A collection of DataTable objects.

You do not create instances of this class directly. You access data tables collection as a property of a data set object.


Method Summary
voidadd(DataTable dataTable)
           Adds a table to the collection. The table name must be unique within the collection, otherwise it will throw an exception.
DataTableget(java.lang.String name)
           Gets a data table by name. Returns null if the table is not found.
java.util.Iteratoriterator()
           Returns an iterator for data table objects contained in this collection.
 

Method Detail

add

public void add(DataTable dataTable)
Adds a table to the collection. The table name must be unique within the collection, otherwise it will throw an exception.

get

public DataTable get(java.lang.String name)
Gets a data table by name. Returns null if the table is not found.

iterator

public java.util.Iterator iterator()
Returns an iterator for data table objects contained in this collection.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.