tablecollection-ag凯发旗舰厅
com.spire.doc.collections
class tablecollection
java.lang.object
com.spire.doc.collections.documentsubsetcollection
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 itable
objects.
tablecollection
public tablecollection(bodyregioncollection bodyitems)
- initializes a new instance of the tablecollection class.
- parameters:
bodyitems
- bodyitem
get
public table get(int index)
- gets the
itable
at the specified index.
- specified by:
get
in interface idocumentobjectcollection
- specified by:
get
in interface itablecollection
- overrides:
get
in class documentsubsetcollection
- parameters:
index
- index
- returns:
- table
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:
- int
contains
public boolean contains(itable table)
- determines whether the
itablecollection
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
itablecollection
- specified by:
indexof
in interface itablecollection
- parameters:
table
- the table.
- returns:
- int
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:
- int
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.