Property Getters/Setters Summary | ||
---|---|---|
method | getAddress() | |
Gets address of the range.
|
||
method | getColumnCount() | |
Gets the count of columns in the range.
|
||
method | getColumnWidth() | |
method | setColumnWidth(value) | |
Sets or gets the column width of this range | ||
method | getCurrentRegion() | |
Returns a Range object that represents the current region.
The current region is a range bounded by any combination of blank rows and blank columns.
|
||
method | getEntireColumn() | |
Gets a Range object that represents the entire column (or columns) that contains the specified range.
|
||
method | getEntireRow() | |
Gets a Range object that represents the entire row (or rows) that contains the specified range.
|
||
method | getFirstColumn() | |
Gets the index of the first column of the range.
|
||
method | getFirstRow() | |
Gets the index of the first row of the range.
|
||
method | getHeight() | |
Gets the width of a range in points.
|
||
method | getHyperlinks() | |
Gets all hyperlink in the range.
|
||
method | getLeft() | |
Gets the distance, in points, from the left edge of column A to the left edge of the range.
|
||
method | getName() | |
method | setName(value) | |
Gets or sets the name of the range. | ||
method | getRefersTo() | |
Gets the range's refers to.
|
||
method | getRowCount() | |
Gets the count of rows in the range.
|
||
method | getRowHeight() | |
method | setRowHeight(value) | |
Sets or gets the height of rows in this range | ||
method | getTop() | |
Gets the distance, in points, from the top edge of row 1 to the top edge of the range.
|
||
method | getValue() | |
method | setValue(value) | |
Gets and sets the value of the range. | ||
method | getWidth() | |
Gets the width of a range in points.
|
||
method | getWorksheet() | |
Gets the |
||
method | get(rowOffset, columnOffset) | |
Gets |
Method Summary | ||
---|---|---|
method | addHyperlink(address, textToDisplay, screenTip) | |
Adds a hyperlink to a specified cell or a range of cells.
|
||
method | applyStyle(style, flag) | |
Applies formats for a whole range.
|
||
method | autoFill(target) | |
Automaticall fill the target range.
|
||
method | autoFill(target, autoFillType) | |
Automaticall fill the target range.
|
||
method | copy(range) | |
Copies data (including formulas), formatting, drawing objects etc. from a source range.
|
||
method | copy(range, options) | |
Copying the range with paste special options.
|
||
method | copyData(range) | |
Copies cell data (including formulas) from a source range.
|
||
method | copyStyle(range) | |
Copies style settings from a source range.
|
||
method | copyValue(range) | |
Copies cell value from a source range.
|
||
method | getCellOrNull(rowOffset, columnOffset) | |
Gets |
||
method | getOffset(rowOffset, columnOffset) | |
Gets |
||
method | intersect(range) | |
Returns a |
||
method | isBlank() | |
Indicates whether the range contains values.
|
||
method | isIntersect(range) | |
Indicates whether the range is intersect.
|
||
method | iterator() | |
Gets the enumerator for cells in this Range.
|
||
method | merge() | |
Combines a range of cells into a single cell.
|
||
method | moveTo(destRow, destColumn) | |
Move the current range to the dest range.
|
||
method | putValue(stringValue, isConverted, setStyle) | |
Puts a value into the range, if appropriate the value will be converted to other data type and cell's number format will be reset.
|
||
method | setInsideBorders(borderEdge, lineStyle, borderColor) | |
Set inside borders of the range.
|
||
method | setOutlineBorder(borderEdge, borderStyle, borderColor) | |
Sets outline border around a range of cells.
|
||
method | setOutlineBorder(borderEdge, borderStyle, borderColor) | |
Sets outline border around a range of cells.
|
||
method | setOutlineBorders(borderStyle, borderColor) | |
Sets the outline borders around a range of cells with same border style and color.
|
||
method | setOutlineBorders(borderStyle, borderColor) | |
Sets the outline borders around a range of cells with same border style and color.
|
||
method | setOutlineBorders(borderStyles, borderColors) | |
Sets out line borders around a range of cells.
|
||
method | setStyle(style) | |
Sets the style of the range.
|
||
method | setStyle(style, explicitFlag) | |
Apply the cell style.
|
||
method | toHtml(saveOptions) | |
Convert the range to html .
|
||
method | toImage(options) | |
Converts the range to image.
|
||
method | toJson(options) | |
Convert the range to JSON value.
|
||
method | toString() | |
Returns a string represents the current Range object.
|
||
method | transpose() | |
Transpose (rotate) data from rows to columns or vice versa.
|
||
method | union(range) | |
Returns the union of two ranges.
|
||
method | unionRang(range) | |
Returns the union result of two ranges.
|
||
method | unionRanges(ranges) | |
Returns the union result of two ranges.
|
||
method | unMerge() | |
Unmerges merged cells of this range.
|
Range getCurrentRegion()
Hyperlink[] getHyperlinks()
int getRowCount()
int getColumnCount()
String getName() / setName(value)
range.Name = "Sheet1!MyRange";
String getRefersTo()
String getAddress()
float getLeft()
float getTop()
float getWidth()
float getHeight()
int getFirstRow()
int getFirstColumn()
Object getValue() / setValue(value)
float getColumnWidth() / setColumnWidth(value)
float getRowHeight() / setRowHeight(value)
Range getEntireColumn()
Range getEntireRow()
Worksheet getWorksheet()
autoFill(target)
target: Range
- the target range.autoFill(target, autoFillType)
target: Range
- The targed range.autoFillType: int
- A Hyperlink addHyperlink(address, textToDisplay, screenTip)
address: String
- Address of the hyperlink.textToDisplay: String
- The text to be displayed for the specified hyperlink.screenTip: String
- The screenTip text for the specified hyperlink.Iterator iterator()
boolean isIntersect(range)
range: Range
- The range.Range intersect(range)
range: Range
- The intersecting range.Range[] unionRang(range)
range: Range
- The rangeUnionRange unionRanges(ranges)
ranges: Range[]
- The rangeArrayList union(range)
range: Range
- The rangeboolean isBlank()
merge()
unMerge()
putValue(stringValue, isConverted, setStyle)
stringValue: String
- Input valueisConverted: boolean
- True: converted to other data type if appropriate.setStyle: boolean
- True: set the number format to cell's style when converting to other data typesetStyle(style, explicitFlag)
style: Style
- The cell style.explicitFlag: boolean
- True, only overwriting formatting which is explicitly set.
applyStyle(style, flag)
style: Style
- The style object which will be applied.flag: StyleFlag
- Flags which indicates applied formatting properties.setStyle(style)
style: Style
- The Style object.setOutlineBorders(borderStyle, borderColor)
borderStyle: int
- A borderColor: CellsColor
- Border color.setOutlineBorders(borderStyle, borderColor)
borderStyle: int
- A borderColor: Color
- Border color.setOutlineBorders(borderStyles, borderColors)
borderStyles: Number Array
- Border styles.borderColors: Color[]
- Border colors.setOutlineBorder(borderEdge, borderStyle, borderColor)
borderEdge: int
- A borderStyle: int
- A borderColor: CellsColor
- Border color.setOutlineBorder(borderEdge, borderStyle, borderColor)
borderEdge: int
- A borderStyle: int
- A borderColor: Color
- Border color.setInsideBorders(borderEdge, lineStyle, borderColor)
borderEdge: int
- A lineStyle: int
- A borderColor: CellsColor
- The color of the border.moveTo(destRow, destColumn)
destRow: int
- The start row of the dest range.destColumn: int
- The start column of the dest range.copyData(range)
range: Range
- Source copyValue(range)
range: Range
- Source copyStyle(range)
range: Range
- Source copy(range, options)
range: Range
- The source range.options: PasteOptions
- The paste special options.transpose()
copy(range)
range: Range
- Source Cell getCellOrNull(rowOffset, columnOffset)
Range getOffset(rowOffset, columnOffset)
rowOffset: int
- Row offset in this range, zero based.columnOffset: int
- Column offset in this range, zero based.String toString()
byte[] toImage(options)
options: ImageOrPrintOptions
- The options for converting this range to imageString toJson(options)
options: JsonSaveOptions
- The options of converting byte[] toHtml(saveOptions)
saveOptions: HtmlSaveOptions
- Options for coverting range to html.