|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.spire.xls.core.spreadsheet.XlsObject
com.spire.xls.core.spreadsheet.XlsWorksheetBase
com.spire.xls.core.spreadsheet.XlsWorksheet
com.spire.xls.Worksheet
public class Worksheet
Represents the worksheet.
| Method Summary | |
|---|---|
void |
applyStyle(CellStyle style)
Apply style to whole sheet. |
void |
copy(CellRange sourceRange,
CellRange destRange)
Copys data from a source range to a destination range. |
void |
copy(CellRange sourceRange,
CellRange destRange,
boolean copyStyle)
Copys data from a source range to a destination range. |
void |
copy(CellRange sourceRange,
CellRange destRange,
boolean copyStyle,
boolean updateReference,
boolean ignoreSize)
Copys data from a source range to a destination range. |
void |
copy(CellRange sourceRange,
CellRange destRange,
boolean copyStyle,
boolean updateReference,
boolean ignoreSize,
boolean copyShape)
|
void |
copy(CellRange sourceRange,
Worksheet worksheet,
int destRow,
int destColumn)
Copy data from source range to destination worksheet. |
void |
copy(CellRange sourceRange,
Worksheet worksheet,
int destRow,
int destColumn,
boolean copyStyle)
Copy data from source range to destination worksheet. |
void |
copy(CellRange sourceRange,
Worksheet worksheet,
int destRow,
int destColumn,
boolean copyStyle,
boolean updateRerence)
Copy data from source range to destination worksheet. |
void |
copyFrom(Worksheet worksheet)
Copy data from specified worksheet. |
DataTable |
exportDataTable(CellRange range,
boolean exportColumnNames)
Exports worksheet data into a DataTable. |
DataTable |
exportDataTable(CellRange range,
boolean exportColumnNames,
boolean computedFormulaValue)
Exports worksheet data into a DataTable. |
DataTable |
exportDataTable(int firstRow,
int firstColumn,
int maxRows,
int maxColumns,
boolean exportColumnNames)
Exports worksheet data into a DataTable |
CellRange[] |
findAll(java.lang.String findValue,
java.util.EnumSet<FindType> flags,
java.util.EnumSet<ExcelFindOptions> findOptions)
Finds the all cells with specified string value. |
CellRange[] |
findAllBool(boolean boolValue)
Finds the cell with the input bool. |
CellRange[] |
findAllDateTime(java.util.Date dateValue)
Finds the cell with the input date time. |
CellRange[] |
findAllNumber(double doubleValue,
boolean formulaValue)
Finds the cell with the input number. |
CellRange[] |
findAllString(java.lang.String stringValue,
boolean formula,
boolean formulaValue)
Finds the cell with the input string. |
CellRange |
findBool(boolean boolValue)
Finds the cell with the input bool. |
CellRange |
findDateTime(java.util.Date dateValue)
Finds the cell with the input date. |
CellRange |
findString(java.lang.String stringValue,
boolean formula,
boolean formulaValue)
Finds the cell with the input string. |
void |
freezePanes(int rowIndex,
int columnIndex)
Freezes panes at the specified cell in the worksheet. |
CellRange |
getAllocatedRange()
Returns a range object that represents the used range on the specified worksheet. |
AutoFiltersCollection |
getAutoFilters()
Returns auto filters collection of worksheet. |
Workbook |
getBook()
|
CellRange |
getCellRange(int row,
int column)
Gets cell range. |
CellRange |
getCellRange(int row,
int column,
int lastRow,
int lastColumn)
Gets cell range. |
CellRange |
getCellRange(java.lang.String name)
Gets cell range. |
CellRange[] |
getCells()
Returns all used cells in the worksheet. |
WorksheetChartsCollection |
getCharts()
Returns charts collection. |
CellRange[] |
getColumns()
Rrepresents all used columns on the specified worksheet. |
CommentsCollection |
getComments()
Returns comments collection for this worksheet. |
CellStyle |
getDefaultColumnStyle(int columnIndex)
Returns default column style. |
CellStyle |
getDefaultRowStyle(int rowIndex)
Returns default row style. |
HPageBreaksCollection |
getHPageBreaks()
Returns an HPageBreaks collection that represents the horizontal |
HyperLinksCollection |
getHyperLinks()
Collection of all worksheet's hyperlinks. |
CellRange |
getIntersectRanges(CellRange range1,
CellRange range2)
Intersects two ranges. |
CellRange[] |
getMergedCells()
Returns all merged ranges. |
PageSetup |
getPageSetup()
Returns a page setup object that contains all the page setup settings for the specified object. |
Workbook |
getParentBook()
|
PicturesCollection |
getPictures()
Pictures collection. |
CellRange |
getPrintRange()
Print area of worksheet. |
CellRange |
getRange()
Returns a Range object that represents the used range on the specified worksheet. |
CellRange[] |
getRows()
Represents all the rows on the specified worksheet. |
VPageBreaksCollection |
getVPageBreaks()
Returns a VPageBreaks collection that represents the vertical page breaks on the sheet. |
CellRange |
merge(CellRange range1,
CellRange range2)
Combines a range of cells into a single cell. |
void |
move(CellRange sourceRange,
CellRange destRange)
Move data from source range to destination range. |
void |
move(CellRange sourceRange,
CellRange destRange,
boolean updateReference,
boolean copyStyle)
|
void |
removeMergedCells(CellRange range)
Remove merged cells from specified range. |
void |
removePicture(int index)
Remove picture from this worksheet. |
void |
removePicture(IPictureShape picture)
Remove picture from this worksheet. |
void |
removePicture(java.lang.String picturename)
Remove picture from this worksheet. |
void |
removeRange(CellRange range)
Removes range from list. |
void |
removeRange(int rowIndex,
int columnIndex)
Removes range from list. |
void |
setActiveCell(CellRange range)
Sets active cell |
void |
setDefaultColumnStyle(int columnIndex,
CellStyle defaultStyle)
Sets default style for column. |
void |
setDefaultColumnStyle(int firstColumnIndex,
int lastColumnIndex,
CellStyle defaultStyle)
Sets default style for column. |
void |
setDefaultRowStyle(int rowIndex,
CellStyle defaultStyle)
Sets default style for row. |
void |
setDefaultRowStyle(int firstRowIndex,
int lastRowIndex,
CellStyle defaultStyle)
Sets default style for row. |
| Methods inherited from class com.spire.xls.core.spreadsheet.XlsObject |
|---|
dispose |
| Methods inherited from interface com.spire.xls.core.IWorksheet |
|---|
copyToClipboard, getCodeName, getGridLineColor, getIndex, getLeftVisibleColumn, getTopVisibleRow, protect, saveToImage, saveToImage, saveToImage, saveToStream, setError, setValue, unprotect |
| Method Detail |
|---|
public CellRange getAllocatedRange()
getAllocatedRange in interface IWorksheetgetAllocatedRange in class XlsWorksheet
public CellRange getCellRange(int row,
int column,
int lastRow,
int lastColumn)
row - column - lastRow - lastColumn -
public CellRange getCellRange(int row,
int column)
row - column -
public CellRange getCellRange(java.lang.String name)
name - Cell name
public CellRange[] getMergedCells()
getMergedCells in interface IWorksheetgetMergedCells in class XlsWorksheet
public CellRange[] findAll(java.lang.String findValue,
java.util.EnumSet<FindType> flags,
java.util.EnumSet<ExcelFindOptions> findOptions)
findValue - Value to search.flags - Type of value to search.findOptions - Way to search.
public CellRange[] findAllNumber(double doubleValue,
boolean formulaValue)
doubleValue - Double value to search for.formulaValue - Indicates if includes formula value.
public CellRange[] findAllString(java.lang.String stringValue,
boolean formula,
boolean formulaValue)
stringValue - String value to search for.formula - Indicates if includes formula.formulaValue - Indicates if includes formula value.
public CellRange[] findAllDateTime(java.util.Date dateValue)
dateValue - Date value to search for.
public CellRange[] findAllBool(boolean boolValue)
boolValue - Bool value to search for.
public CellRange findBool(boolean boolValue)
boolValue - Bool value to search for.
public CellRange findString(java.lang.String stringValue,
boolean formula,
boolean formulaValue)
stringValue - String value to search for.formula - Indicates whether includes formula.formulaValue - Indicates whether includes formula value.
public CellRange findDateTime(java.util.Date dateValue)
dateValue - Date value to search for.
public void copyFrom(Worksheet worksheet)
worksheet - worksheet object
public void copy(CellRange sourceRange,
CellRange destRange)
sourceRange - Source range.destRange - Destination range.
public void copy(CellRange sourceRange,
CellRange destRange,
boolean copyStyle)
sourceRange - Source range.destRange - Destination range.copyStyle - Indicates whether copys styles.
public void copy(CellRange sourceRange,
CellRange destRange,
boolean copyStyle,
boolean updateReference,
boolean ignoreSize)
sourceRange - Source range.destRange - Destination rangecopyStyle - Indicates whether copy styles.updateReference - Indicates whether update reference ranges.ignoreSize - Indicates whether check range sizes.
public void copy(CellRange sourceRange,
Worksheet worksheet,
int destRow,
int destColumn)
sourceRange - Source range.worksheet - Destination worksheetdestRow - Row index of destination worksheet.destColumn - Column index of destination worksheet.
public void copy(CellRange sourceRange,
Worksheet worksheet,
int destRow,
int destColumn,
boolean copyStyle)
sourceRange - Source rangeworksheet - Destination worksheet.destRow - Row index of destination worksheet.destColumn - Column index of destination worksheet.copyStyle - Indicates whehter copy styles.
public void copy(CellRange sourceRange,
Worksheet worksheet,
int destRow,
int destColumn,
boolean copyStyle,
boolean updateRerence)
sourceRange - Source rangeworksheet - Destination worksheet.destRow - Row index of destination worksheet.destColumn - Column index of destination worksheet.copyStyle - Indicates whehter copy styles.updateRerence - Indicates whether update reference range.
public void copy(CellRange sourceRange,
CellRange destRange,
boolean copyStyle,
boolean updateReference,
boolean ignoreSize,
boolean copyShape)
sourceRange - Source range.destRange - Destination rangecopyStyle - Indicates whether copy styles.updateReference - Indicates whether update reference ranges.ignoreSize - Indicates whether check range sizes.copyShape - Indicates whether copy shape.
public void move(CellRange sourceRange,
CellRange destRange)
sourceRange - Source range.destRange - Destination range.
public void move(CellRange sourceRange,
CellRange destRange,
boolean updateReference,
boolean copyStyle)
public DataTable exportDataTable(CellRange range,
boolean exportColumnNames)
range - Range to export.exportColumnNames - Indicates if export column name.
public DataTable exportDataTable(CellRange range,
boolean exportColumnNames,
boolean computedFormulaValue)
range - Range to export.exportColumnNames - Indicates if export column name.computedFormulaValue - Indicates wheter compute formula value.
public DataTable exportDataTable(int firstRow,
int firstColumn,
int maxRows,
int maxColumns,
boolean exportColumnNames)
firstRow - Row of first cell.firstColumn - Column of first cell.maxRows - Maximun rows to export.maxColumns - Maximun columns to export.exportColumnNames - Indicates if export column name.
public CellRange getIntersectRanges(CellRange range1,
CellRange range2)
range1 - First range.range2 - Second range.
public CellRange merge(CellRange range1,
CellRange range2)
range1 - First range.range2 - Second range.
public void setDefaultColumnStyle(int columnIndex,
CellStyle defaultStyle)
columnIndex - Column index.defaultStyle - Default style.
public void setDefaultColumnStyle(int firstColumnIndex,
int lastColumnIndex,
CellStyle defaultStyle)
firstColumnIndex - First column index.lastColumnIndex - Last column index.defaultStyle - Default style.
public void setDefaultRowStyle(int rowIndex,
CellStyle defaultStyle)
rowIndex - Row index.defaultStyle - Default style.
public void setDefaultRowStyle(int firstRowIndex,
int lastRowIndex,
CellStyle defaultStyle)
firstRowIndex - First row index.lastRowIndex - Last row index.defaultStyle - Default style.public CellStyle getDefaultColumnStyle(int columnIndex)
getDefaultColumnStyle in interface IWorksheetgetDefaultColumnStyle in class XlsWorksheetcolumnIndex - Column index.
public CellStyle getDefaultRowStyle(int rowIndex)
getDefaultRowStyle in interface IWorksheetgetDefaultRowStyle in class XlsWorksheetrowIndex - Row index.
public void removeMergedCells(CellRange range)
range - Specified range.public void removeRange(CellRange range)
range - Specified range.
public void removeRange(int rowIndex,
int columnIndex)
rowIndex - Row index.columnIndex - Column index.public void removePicture(int index)
index - Picture IDpublic void removePicture(java.lang.String picturename)
picturename - Picture namepublic void removePicture(IPictureShape picture)
picture - A pictureshapepublic void applyStyle(CellStyle style)
applyStyle in class XlsWorksheetstyle - style to apply
public void freezePanes(int rowIndex,
int columnIndex)
rowIndex - Row index.columnIndex - Column index.public void setActiveCell(CellRange range)
range - Cell to activate.public CellRange[] getCells()
getCells in interface IWorksheetgetCells in class XlsWorksheetpublic CellRange[] getColumns()
getColumns in interface IWorksheetgetColumns in class XlsWorksheetpublic PageSetup getPageSetup()
getPageSetup in interface IWorksheetgetPageSetup in class XlsWorksheetpublic AutoFiltersCollection getAutoFilters()
getAutoFilters in interface IWorksheetgetAutoFilters in class XlsWorksheetpublic WorksheetChartsCollection getCharts()
getCharts in class XlsWorksheetBasepublic CommentsCollection getComments()
getComments in interface IWorksheetgetComments in class XlsWorksheetBasepublic HPageBreaksCollection getHPageBreaks()
getHPageBreaks in interface IWorksheetgetHPageBreaks in class XlsWorksheetpublic HyperLinksCollection getHyperLinks()
getHyperLinks in interface IWorksheetgetHyperLinks in class XlsWorksheetpublic PicturesCollection getPictures()
getPictures in class XlsWorksheetBasepublic CellRange getPrintRange()
public VPageBreaksCollection getVPageBreaks()
getVPageBreaks in interface IWorksheetgetVPageBreaks in class XlsWorksheetpublic CellRange getRange()
getRange in interface IWorksheetgetRange in class XlsWorksheetpublic CellRange[] getRows()
getRows in interface IWorksheetgetRows in class XlsWorksheetpublic Workbook getBook()
public Workbook getParentBook()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||