tablecollection-ag凯发旗舰厅



com.spire.doc.collections
class tablecollection

java.lang.object
  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 itable objects.


constructor summary
tablecollection(bodyregioncollection bodyitems)
          initializes a new instance of the tablecollection class.
 
method summary
 int add(itable table)
          adds a table to end of text body.
 boolean contains(itable table)
          determines whether the itablecollection contains a specific value.
 table get(int index)
          gets the itable at the specified index.
 int indexof(itable table)
          determines the index of a specific item in the itablecollection
 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 tablecollection class.
parameters:
bodyitems - bodyitem
method detail

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.


网站地图