public class GridWorksheetCollection extends CollectionBase
GridWorksheet objects.| Modifier and Type | Method and Description |
|---|---|
int |
add()
Adds a worksheet to the collection.
|
GridWorksheet |
add(java.lang.String sheetName)
Adds a worksheet to the collection.
|
int |
addCopy(int sheetIndex)
Adds a worksheet to the collection and copies data from an existed worksheet.
|
int |
addCopy(java.lang.String sheetName)
Adds a worksheet to the collection and copies data from an existed worksheet.
|
void |
calculateFormula()
Calculates the result of formulas.
|
void |
clear()
Clear all worksheets.
|
GridWorksheet |
get(int index)
Gets the
GridWorksheet element at the specified index. |
GridWorksheet |
get(java.lang.String sheetName)
Gets the
GridWorksheet element with the specified name. |
int |
getActiveSheetIndex()
Represents the index of active worksheet when the spreadsheet is opened.
|
int |
getCount()
Gets the size of enumerator
|
java.lang.String |
getDefaultFontName()
Gets the control's default font name.
|
FontUnit |
getDefaultFontSize()
?????????
|
GridNameCollection |
getNames()
Gets the collection of all the Name objects in the spreadsheet.
|
char |
getNumberDecimalSeparator()
Gets the decimal separator for formatting/parsing numeric values.
|
GridWorksheet |
insert(int index,
java.lang.String sheetName)
Insert a worksheet.
|
java.util.Iterator |
iterator()
Gets the rows enumerator
|
void |
removeAt(int index)
Removes the element at a specified index.
|
void |
removeAt(java.lang.String name)
Removes the element at a specified name.
|
void |
setActiveSheetIndex(int value)
Represents the index of active worksheet when the spreadsheet is opened.
|
void |
setDefaultFontName(java.lang.String value)
Sets the control's default font name.
|
void |
setDefaultFontSize(FontUnit value)
?????????
|
void |
setNumberDecimalSeparator(char value)
Sets the decimal separator for formatting/parsing numeric values.
|
void |
setVisible(java.lang.String sheetName,
boolean isVisible)
Sets the visible for the sheet .
|
void |
swapSheet(int sheetIndex1,
int sheetIndex2)
Swaps the two sheets.
|
add, contains, indexOfpublic GridWorksheet get(int index)
GridWorksheet element at the specified index.get in class CollectionBaseindex - The zero based index of the element.public GridWorksheet get(java.lang.String sheetName)
GridWorksheet element with the specified name.sheetName - The name of the worksheet.public java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in class CollectionBasepublic int getCount()
getCount in class CollectionBasepublic int add()
GridWorksheet object index.public GridWorksheet add(java.lang.String sheetName)
sheetName - Worksheet nameGridWorksheet object.public void removeAt(int index)
removeAt in class CollectionBaseindex - The index value of the element to remove.public void removeAt(java.lang.String name)
name - The name of the element to remove.public void setVisible(java.lang.String sheetName,
boolean isVisible)
sheetName - Name of source worksheet.isVisible - Whether the worksheet is visiblepublic int addCopy(java.lang.String sheetName)
sheetName - Name of source worksheet.GridWorksheet object index.public int addCopy(int sheetIndex)
sheetIndex - Index of source worksheet.GridWorksheet object index.public void clear()
Remarks
A workbook must contains a worksheet.clear in class CollectionBasepublic GridWorksheet insert(int index, java.lang.String sheetName)
index - The sheet indexpublic void swapSheet(int sheetIndex1,
int sheetIndex2)
sheetIndex1 - The first worksheet.sheetIndex2 - The second worksheet.public int getActiveSheetIndex()
Remarks
Sheet index is zero based.public void setActiveSheetIndex(int value)
Remarks
Sheet index is zero based.public void calculateFormula()
public java.lang.String getDefaultFontName()
Example
GridWeb GridWeb1=new GridWeb();
GridWeb1.setDefaultFontName("Arial");
public void setDefaultFontName(java.lang.String value)
public char getNumberDecimalSeparator()
public void setNumberDecimalSeparator(char value)
public FontUnit getDefaultFontSize()
public void setDefaultFontSize(FontUnit value)
public GridNameCollection getNames()
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.