|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.spire.ms.System.Collections.CollectionBase
com.spire.xls.core.spreadsheet.collections.CollectionExtended
com.spire.xls.core.spreadsheet.collections.XlsWorksheetsCollection
public class XlsWorksheetsCollection
A collection of all the Worksheet objects in the specified or active workbook. Each Worksheet object represents a worksheet.
| Constructor Summary | |
|---|---|
XlsWorksheetsCollection(java.lang.Object parent)
Creates a collection and sets its Application and Parent properties. |
|
| Method Summary | |
|---|---|
IWorksheet |
add(java.lang.String sheetName)
Adds an empty worksheet. |
IWorksheet |
addCopy(int sheetIndex)
|
IWorksheet |
addCopy(int sheetIndex,
WorksheetCopyType flags)
Add a copy of the specified worksheet to the worksheet collection. |
IWorksheet |
addCopy(IWorksheet sheet)
Adds copy of worksheet. |
void |
addCopy(IWorksheets worksheets)
Adding worksheets collection to current workbook. |
void |
addCopy(IWorksheets worksheets,
WorksheetCopyType flags)
Adding worksheets collection to current workbook. |
IWorksheet |
addCopy(IWorksheet sheet,
WorksheetCopyType flags)
Adds a copy of worksheet. |
IWorksheet |
addCopyAfter(IWorksheet toCopy)
Adds copy of sheet to collection after choosed sheet. |
IWorksheet |
addCopyAfter(IWorksheet toCopy,
IWorksheet sheetBefore)
Adds copy of sheet to collection before choosed sheet. |
IWorksheet |
addCopyBefore(IWorksheet toCopy)
Adds copy of sheet to collection before choosed sheet. |
IWorksheet |
addCopyBefore(IWorksheet toCopy,
IWorksheet sheetAfter)
Adds copy of sheet to collection before choosed sheet. |
void |
clear()
|
IWorksheet |
create()
Create a new worksheet. |
IWorksheet |
create(java.lang.String name)
Create worksheet with specified name. |
CellRange[] |
findAll(java.lang.String findValue,
java.util.EnumSet<FindType> flags,
java.util.EnumSet<ExcelFindOptions> findOptions)
|
IXLSRange |
findFirst(java.lang.String findValue,
java.util.EnumSet<FindType> flags,
java.util.EnumSet<ExcelFindOptions> findOptions)
|
IWorksheet |
get(int Index)
Returns a single object from a collection. |
IWorksheet |
get(java.lang.String sheetName)
Returns a single object from a collection. |
boolean |
getUseHashForWorksheetLookup()
Toggles worksheet search algorithm when searching worksheet by name. |
boolean |
getUseRangesCache()
Indicates whether all created range objects should be cached. |
boolean |
isRightToLeft()
|
void |
isRightToLeft(boolean value)
|
void |
move(int oldIndex,
int newIndex)
Moves worksheet.. |
void |
remove(int index)
Removes specified worksheet from the collection. |
void |
remove(IWorksheet sheet)
Remove specified worksheet from workbook collection. |
void |
remove(java.lang.String sheetName)
Removes specified worksheet from the collection. |
void |
removeAt(int index)
Removes specified worksheet from the collection. |
| Methods inherited from interface com.spire.xls.core.IWorksheets |
|---|
getCount, getParent |
| Constructor Detail |
|---|
public XlsWorksheetsCollection(java.lang.Object parent)
parent - Parent object for the collection.| Method Detail |
|---|
public IWorksheet get(int Index)
get in interface IWorksheetspublic IWorksheet get(java.lang.String sheetName)
get in interface IWorksheetspublic boolean getUseRangesCache()
getUseRangesCache in interface IWorksheetspublic boolean getUseHashForWorksheetLookup()
public void clear()
clear in class com.spire.ms.System.Collections.CollectionBasepublic IWorksheet create()
IWorksheets
create in interface IWorksheetspublic IWorksheet create(java.lang.String name)
IWorksheets
create in interface IWorksheetsname - New name of worksheet. Must be unique for collection.
public CellRange[] findAll(java.lang.String findValue,
java.util.EnumSet<FindType> flags,
java.util.EnumSet<ExcelFindOptions> findOptions)
public IXLSRange findFirst(java.lang.String findValue,
java.util.EnumSet<FindType> flags,
java.util.EnumSet<ExcelFindOptions> findOptions)
public void remove(IWorksheet sheet)
remove in interface IWorksheetssheet - Reference on worksheet to remove.
public void remove(java.lang.String sheetName)
remove in interface IWorksheetssheetName - Name of the sheet to remove.public void remove(int index)
remove in interface IWorksheetsindex - Index of the sheet to remove.public void removeAt(int index)
removeAt in class com.spire.ms.System.Collections.CollectionBaseindex - Index of the sheet to remove.public IWorksheet addCopyBefore(IWorksheet toCopy)
addCopyBefore in interface IWorksheetstoCopy - Represents worksheet to copy.
public IWorksheet addCopyBefore(IWorksheet toCopy,
IWorksheet sheetAfter)
addCopyBefore in interface IWorksheetstoCopy - Represents worksheet to copy.sheetAfter - Represents sheet that, in collection must be after copied sheet.
public IWorksheet addCopyAfter(IWorksheet toCopy)
addCopyAfter in interface IWorksheetstoCopy - Represents worksheet to copy.
public IWorksheet addCopyAfter(IWorksheet toCopy,
IWorksheet sheetBefore)
addCopyAfter in interface IWorksheetstoCopy - Represents worksheet to copy.sheetBefore - Represents sheet that, in collection must be before copied sheet.
public boolean isRightToLeft()
public void isRightToLeft(boolean value)
public void move(int oldIndex,
int newIndex)
oldIndex - Old index.newIndex - New index.public IWorksheet add(java.lang.String sheetName)
sheetName - Name of the newly created worksheet.
public IWorksheet addCopy(int sheetIndex)
public IWorksheet addCopy(IWorksheet sheet)
sheet - Worksheet to copy.
public IWorksheet addCopy(IWorksheet sheet,
WorksheetCopyType flags)
sheet - Worksheet to copy.flags - Represetns copy flags.
public void addCopy(IWorksheets worksheets)
worksheets - Source worksheets collection.
public void addCopy(IWorksheets worksheets,
WorksheetCopyType flags)
worksheets - Source worksheets collection.flags - Represents copy option flags.
public IWorksheet addCopy(int sheetIndex,
WorksheetCopyType flags)
sheetIndex - Index of the workbook that should be copiedflags - Represents copy options flags.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||