|
|||||||||
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.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 iworksheets
public iworksheet get(java.lang.string sheetname)
get
in interface iworksheets
public boolean getuserangescache()
getuserangescache
in interface iworksheets
public boolean getusehashforworksheetlookup()
public void clear()
clear
in class com.spire.ms.system.collections.collectionbase
public iworksheet create()
iworksheets
create
in interface iworksheets
public iworksheet create(java.lang.string name)
iworksheets
create
in interface iworksheets
name
- 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 iworksheets
sheet
- reference on worksheet to remove.
public void remove(java.lang.string sheetname)
remove
in interface iworksheets
sheetname
- name of the sheet to remove.public void remove(int index)
remove
in interface iworksheets
index
- index of the sheet to remove.public void removeat(int index)
removeat
in class com.spire.ms.system.collections.collectionbase
index
- index of the sheet to remove.public iworksheet addcopybefore(iworksheet tocopy)
addcopybefore
in interface iworksheets
tocopy
- represents worksheet to copy.
public iworksheet addcopybefore(iworksheet tocopy, iworksheet sheetafter)
addcopybefore
in interface iworksheets
tocopy
- represents worksheet to copy.sheetafter
- represents sheet that, in collection must be after copied sheet.
public iworksheet addcopyafter(iworksheet tocopy)
addcopyafter
in interface iworksheets
tocopy
- represents worksheet to copy.
public iworksheet addcopyafter(iworksheet tocopy, iworksheet sheetbefore)
addcopyafter
in interface iworksheets
tocopy
- 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 |