Class Methods: Addmergedregion (Cellrangeaddress Region)
Class Methods: Addmergedregion (Cellrangeaddress Region)
S.No
.
addMergedRegion(CellRangeAddress region)
Adds a merged region of cells (hence those cells form one).
2
autoSizeColumn(int column)
Adjusts the column width to fit the contents.
3
iterator()
This method is an alias for rowIterator() to allow foreach loops
4
addHyperlink(XSSFHyperlink hyperlink)
Registers a hyperlink in the collection of hyperlinks on this sheet
For
the
remaining
methods
of
this
class,
refer
the
complete
at:https://poi.apache.org/apidocs/org/apache/poi/xssf/usermodel/XSSFSheet.html.
API
Row
This is an interface under the org.apache.poi.ss.usermodel package. It is used for high-level
representation of a row of a spreadsheet. It is a super-interface of all classes that represent rows
in POI library.
XSSFRow
Class Methods
S.No.
Description
createCell(int columnIndex)
Creates new cells within the row and returns it.
2
setHeight(short height)
Sets the height in short units.
For
the
remaining
methods
of
this
class,
follow
the
linkhttps://poi.apache.org/apidocs/org/apache/poi/xssf/usermodel/XSSFRow.html
given
Cell
This is an interface under the org.apache.poi.ss.usermodel package. It is a super-interface of all
classes that represent cells in the rows of a spreadsheet.
Cells can take various attributes such as blank, numeric, date, error, etc. Cells should have their
own numbers (0 based) before being added to a row.
XSSFCell
This is a class under the org.apache.poi.xssf.usermodel package. It implements the Cell
interface. It is a high-level representation of cells in the rows of a spreadsheet.
Field Summary
Listed below are some of the fields of the XSSFCell class along with their description.
Cell Type
Description
CELL_TYPE_BLANK
CELL_TYPE_BOOLEAN
CELL_TYPE_ERROR
CELL_TYPE_FORMULA
CELL_TYPE_NUMERIC
CELL_TYPE_STRING
Class Methods
S.No.
Description
setCellStyle(CellStyle style)
Sets the style for the cell.
2
setCellType(int cellType)
Sets the type of cells (numeric, formula, or string).
3
setCellValue(boolean value)
setCellValue(java.util.Calendar value)
Sets a date value for the cell.
5
setCellValue(double value)
Sets a numeric value for the cell.
6
setCellValue(java.lang.String str)
Sets a string value for the cell.
7
setHyperlink(Hyperlink hyperlink)