public interface IWorksheets extends java.lang.Iterable<IWorksheet>
| Modifier and Type | Method and Description |
|---|---|
IWorksheet |
add()
Creates a new worksheet.
|
IWorksheet |
add(SheetType type)
Creates a new sheet.
|
IWorksheet |
addAfter(IWorksheet sheet)
Creates a new worksheet and inserts it after the specified sheet.
|
IWorksheet |
addBefore(IWorksheet sheet)
Creates a new worksheet and inserts it before the specified sheet.
|
boolean |
contains(IWorksheet worksheet)
Returns true if the specified Worksheet is contained by the collection of
worksheets; otherwise, false is returned.
|
IWorksheet |
get(int index)
Gets the worksheet using the index.
|
IWorksheet |
get(java.lang.String name)
Gets the worksheet using the name.
|
IWorksheets |
get(java.lang.String[] name)
Gets worksheets by names.
|
int |
getCount()
Returns the number of objects in the collection.
|
int |
indexOf(IWorksheet worksheet)
Returns the zero-based index of the specified worksheet in the collection.
|
void |
select()
Selects the object.
|
void |
select(boolean replace)
Selects the object.
|
int getCount()
IWorksheet get(int index)
index - The index.IWorksheet get(java.lang.String name)
name - The worksheet's name.IWorksheets get(java.lang.String[] name)
name - An array that represents names of worksheets.void select()
void select(boolean replace)
replace - Used only with IWorkbook.Worksheets.
True to replace the current selection with
the specified object.
False to extend the current selection to
include any previously selected objects and the specified object.IWorksheet add()
IWorksheet add(SheetType type)
type - The sheet's type.IWorksheet addAfter(IWorksheet sheet)
sheet - The insert sheet.IWorksheet addBefore(IWorksheet sheet)
sheet - The specified sheet index.boolean contains(IWorksheet worksheet)
worksheet - The IWorksheet object.int indexOf(IWorksheet worksheet)
worksheet - The IWorksheet object.