Modifier and Type | Method and Description |
---|---|
Table |
add(String name,
CellRange range,
boolean hasHeaders)
Adds a new
Table to the collection. |
Table |
add(String name,
String range,
boolean hasHeaders)
Adds a new
Table to the collection. |
Table |
get(int index)
Gets the
Table at the specified index. |
Table |
get(String name)
Gets
Table described by name from the collection. |
Iterator<Table> |
iterator()
Gets the collection enumerator.
|
void |
remove(int index,
RemoveShiftDirection direction)
Removes the
Table at the specified index. |
boolean |
remove(Table table,
RemoveShiftDirection direction)
Removes the specified
Table . |
int |
size()
Gets the number of
Table s contained in the collection. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public Table add(String name, CellRange range, boolean hasHeaders)
Table
to the collection.
Method creates and adds a new table to the worksheet.
If hasHeaders
is true
first row in specified range will be used as header row; otherwise, table's range will be expanded by inserting a header row.
name
- The name of the Table
.range
- The Table
cell range.hasHeaders
- Specifies whether the range contains a header row.Table
.NullPointerException
- range
is null.IllegalArgumentException
- range
doesn't belong to the parent worksheet.IllegalStateException
- Table
or DefinedName
with same name already exists.public Table add(String name, String range, boolean hasHeaders)
Table
to the collection.
Method creates and adds a new table to the worksheet.
If hasHeaders
is true
first row in specified range will be used as header row; otherwise, table's range will be expanded by inserting a header row.
public Table get(String name)
Table
described by name from the collection.name
- Name of the table.Table
with the specified name.public void remove(int index, RemoveShiftDirection direction)
Table
at the specified index.index
- The table index.direction
- The removal shift direction.public boolean remove(Table table, RemoveShiftDirection direction)
Table
.table
- The table.direction
- The removal shift direction.true
if removed successfully, false
otherwiseNullPointerException
- table
is null.© GemBox d.o.o. — All rights reserved.