public interface Range
Sheet
, then the upload will sync to the UI automatically.Range
, please use the Ranges
API.
isProtected()
before you do any operation.Ranges
Modifier and Type | Interface and Description |
---|---|
static class |
Range.ApplyBorderType |
static class |
Range.AutoFillType |
static class |
Range.AutoFilterOperation |
static class |
Range.CellAttribute |
static interface |
Range.CellStyleHelper
a cell style helper to create style relative object for cell
|
static class |
Range.DeleteShift
Shift direction of delete api
|
static class |
Range.InsertCopyOrigin
Copy origin format/style of insert
|
static class |
Range.InsertShift
Shift direction of insert api
|
static class |
Range.PasteOperation |
static class |
Range.PasteType |
static class |
Range.SheetVisible |
static class |
Range.SortDataOption |
static class |
Range.SyncLevel
Deprecated.
since 3.5 It is always synchronized on Book by a read-write lock
|
Modifier and Type | Method and Description |
---|---|
Chart |
addChart(SheetAnchor anchor,
Chart.Type type,
Chart.Grouping grouping,
Chart.LegendPosition pos)
Adds chart to sheet
|
Picture |
addPicture(SheetAnchor anchor,
byte[] image,
Picture.Format format)
Adds picture to sheet
|
void |
applyAutoFilter()
Re-applies the filter, filter by last condition and data again.
|
void |
applyBorders(Range.ApplyBorderType applyType,
CellStyle.BorderType borderType,
String htmlColor)
apply borders
|
String |
asString()
get formatted string of this range
|
void |
autoFill(Range dest,
Range.AutoFillType fillType)
According to current range, fills data to destination range automatically
|
void |
clearAll()
Clears contents, styles and unmerge this range.
|
void |
clearContents()
Clears contents
|
void |
clearStyles()
Clears styles
|
Sheet |
cloneSheet(String name)
Clone this sheet; create a sheet and copy the contents of this sheet; then add to the end of the book.
|
Sheet |
cloneSheetFrom(String name,
Sheet sheet)
Clone from the specified source sheet to the owner book of this range.
|
void |
createName(String nameName)
Create a
Name that refer to this range. |
Sheet |
createSheet(String name)
Creates a new sheet
|
void |
delete(Range.DeleteShift shift)
Delete cells of the range.
|
void |
deleteChart(Chart chart)
Deletes chart
|
void |
deletePicture(Picture picture)
Deletes picture that in sheet
|
void |
deleteSheet()
Deletes sheet.
|
void |
deleteValidation()
Delete the
Validation associated in the specified range. |
void |
enableAutoFilter(boolean enable)
Enable/disable autofilter of the sheet
|
void |
enableAutoFilter(int field,
Range.AutoFilterOperation filterOp,
Object criteria1,
Object criteria2,
Boolean showButton)
Enables autofilter and set extra condition
|
void |
fillDown()
Fills cells by copying from first/top row data
|
void |
fillLeft()
Fills cells by copying from last/right column data
|
void |
fillRight()
Fills cells by copying from first/left column data
|
void |
fillUp()
Fills cells by copying from bottom row data
|
Range |
findAutoFilterRange()
To find a range of cells for applying auto filter according to this range.
|
Book |
getBook()
Gets the book of this range
|
CellData |
getCellData()
Gets the first cell(top-left) data of this range
|
String |
getCellDataFormat()
Gets the first cell(top-left) format of this range
|
String |
getCellEditText()
Gets the first cell(top-left) edit text of this range
|
String |
getCellFormatText()
Gets the first cell(top-left) formatted text of this range
|
Hyperlink |
getCellHyperlink()
Gets the first cell(top-left)
Hyperlink object of this range. |
String |
getCellRichText()
Returns text in html format; null if not a rich text.
|
CellStyle |
getCellStyle()
Gets the first cell(top-left) style of this range
|
Range.CellStyleHelper |
getCellStyleHelper()
Gets cell-style-helper, this helper helps you to create new style, font or color
|
Object |
getCellValue()
Gets the first cell(top-left) value of this this range
|
int |
getColumn()
Gets the left column of this range
|
int |
getColumnCount()
Gets the column count of this range
|
String |
getCommentRichText()
Return the comment rich edit text of the left top cell of this Range.
|
CellRegion |
getDataRegion()
Returns the region which contains data(including chart, picture, and
fills) in the sheet of this Range; return null if empty sheet.
|
SRange |
getInternalRange()
Get internal range implementation
|
int |
getLastColumn()
Gets the right/last column of this range
|
int |
getLastRow()
Gets the bottom/last row of this range
|
ReadWriteLock |
getLock() |
CellRegion |
getMergedRegion()
Returns the merged region of the left top cell of this Range if any;
otherwise, returns null if not a merged region.
|
Font |
getOrCreateFont(Font.Boldweight boldweight,
Color color,
int fontHeight,
String fontName,
boolean italic,
boolean strikeout,
Font.TypeOffset typeOffset,
Font.Underline underline)
Get font if exists or create font if not exists from the book of this
range and return it.
|
int |
getRow()
Gets the top row of this range
|
int |
getRowCount()
Gets the row count of this range
|
Sheet |
getSheet()
Gets the sheet of this range
|
String |
getSheetName()
Gets the sheet name
|
int |
getSheetOrder()
Gets the sheet order
|
SheetProtection |
getSheetProtection()
Gets
SheetProtection which tells what are allowed operations for
a protected sheet of this range. |
List<Validation> |
getValidations()
Gets read only
Validation associated with the left-top cell
of this range; return null if no associated validation. |
boolean |
hasMergedCell() |
void |
insert(Range.InsertShift shift,
Range.InsertCopyOrigin copyOrigin)
Insert new cells to the area of this range.
To insert a row, you have to call toRowRange() first, to insert a column, you have to call toColumnRange() first. |
boolean |
isAutoFilterEnabled() |
boolean |
isCommentVisible()
Returns whether the comment is always visible at the left top cell of
this range; if no comment at the cell, it returns false.
|
boolean |
isDisplaySheetGridlines() |
boolean |
isMergedCell() |
boolean |
isProtected() |
boolean |
isSheetProtected() |
boolean |
isWholeColumn()
Check if this range represents a whole column, which mean all rows are included,
|
boolean |
isWholeRow()
Check if this range represents a whole row, which mean all column are included,
|
boolean |
isWholeSheet()
Check if this range represents a whole sheet, which mean all column and row are included,
|
void |
merge(boolean across)
Merges the range
|
void |
moveChart(SheetAnchor anchor,
Chart chart)
Moves chart to new location
|
void |
movePicture(SheetAnchor anchor,
Picture picture)
Moves picture
|
void |
notifyChange()
Notify this range has been changed.
|
void |
notifyChange(Range.CellAttribute cellAttr)
Notify this range has been changed on the specifield attribute.
|
void |
notifyChange(String[] variables)
Notify the whole book of specified variables change.
|
Range |
paste(Range dest)
Pastes to destination
|
Range |
paste(Range dstRange,
boolean cut)
Cut and paste to destination
|
Range |
pasteSpecial(Range dest,
Range.PasteType type,
Range.PasteOperation op,
boolean skipBlanks,
boolean transpose)
Pastes to destination
|
void |
protectSheet(SheetProtection protection)
Protect a
Sheet so that it cannot be modified. |
void |
protectSheet(String password)
Deprecated.
use
protectSheet(String password,
boolean allowSelectingLockedCells, boolean allowSelectingUnlockedCells,
boolean allowFormattingCells, boolean allowFormattingColumns, boolean allowFormattingRows,
boolean allowInsertColumns, boolean allowInsertRows, boolean allowInsertingHyperlinks,
boolean allowDeletingColumns, boolean allowDeletingRows,
boolean allowSorting, boolean allowFiltering,
boolean allowUsingPivotTables, boolean drawingObjects, boolean scenarios) instead
Enable sheet protection and apply a password, or null to disable protection |
void |
protectSheet(String password,
boolean allowSelectingLockedCells,
boolean allowSelectingUnlockedCells,
boolean allowFormattingCells,
boolean allowFormattingColumns,
boolean allowFormattingRows,
boolean allowInsertColumns,
boolean allowInsertRows,
boolean allowInsertingHyperlinks,
boolean allowDeletingColumns,
boolean allowDeletingRows,
boolean allowSorting,
boolean allowFiltering,
boolean allowUsingPivotTables,
boolean drawingObjects,
boolean scenarios)
Protect a
Sheet so that it cannot be modified. |
void |
refresh(boolean includeDependants)
Enforce evaluation(if not cached) and refresh UI of this range and its
dependent cells if the includeDependents is true.
|
void |
refresh(boolean includeDependents,
boolean clearCache,
boolean enforceEval)
Update data model and refresh UI of this range and its dependent cells
if the argument includeDependents is true.
|
void |
resetAutoFilter()
Clears condition of filter, show all the data
|
boolean |
setAutoRefresh(boolean auto)
Turn on(true)/off(false) of auto refresh of this range and return
previous on/off status; default is true.
|
void |
setCellEditText(String editText)
Sets cell editText, applies it to all cells of this range
|
void |
setCellHyperlink(Hyperlink.HyperlinkType type,
String address,
String label)
Sets cell hyperlink, applies it too all cells
|
void |
setCellRichText(String html)
Set into the left top cell of this Range the specified text in html format.
|
void |
setCellStyle(CellStyle nstyle)
Sets cell style, applies it to all cells of this range
|
void |
setCellValue(Object value)
Sets cell data value, applies it to all cells
|
void |
setColumnWidth(int widthPx)
Sets the width(in pixel) of column in this range, it effect to whole column.
|
void |
setCommentRichText(String html)
Set comment rich text into the left top cell of this range; null to
delete it.
|
void |
setCommentVisible(boolean visible)
Set comment visibility into the left top cell of this range; if no
comment at the cell, it simply ignored.
|
void |
setDisplaySheetGridlines(boolean enable)
Displays sheet grid-lines or not
|
void |
setFreezePanel(int rowfreeze,
int columnfreeze)
Set the freeze panel
|
void |
setHidden(boolean hidden)
Hide or unhide rows or columns.
To hide/unhide a row, you have to call toRowRange() first, to hide/un-hide a column, you have to call toColumnRange()
or a whole column range. |
void |
setNameName(String namename,
String newname)
Set(Rename) the name of the Name(or Table) as specified in this
Range(a Book or a Sheet).
|
void |
setRowHeight(int heightPx)
Sets the height(in pixel) of row in this range, it effect to whole row.
|
void |
setRowHeight(int heightPx,
boolean isCustom)
Sets the height(in pixel) of row in this range and specify it's custom size or not.
|
void |
setSheetName(String name)
Sets the sheet name
|
void |
setSheetOrder(int pos)
Sets the sheet order
|
void |
setSheetVisible(Range.SheetVisible visible)
Setup sheet's visibility; can be VISIBLE, HIDDEN, or VERY_HIDDEN.
|
void |
setStringValue(String value)
Save the specified value into this range as a String no matter the value
is prefixed with '=' or not.
|
void |
setSyncLevel(Range.SyncLevel syncLevel)
Deprecated.
It is always synchronized on Book by a read-write lock
|
void |
setValidation(Validation.ValidationType validationType,
boolean ignoreBlank,
Validation.OperatorType operatorType,
boolean inCellDropDown,
String formula1,
String formula2,
boolean showInput,
String inputTitle,
String inputMessage,
boolean showError,
Validation.AlertStyle alertStyle,
String errorTitle,
String errorMessage)
Add if not exist or modify an existing
Validation to this range. |
void |
shift(int rowOffset,
int colOffset)
Shifts/moves cells with a offset row and column
|
void |
sort(boolean desc)
Sort range
|
void |
sort(boolean desc,
boolean header,
boolean matchCase,
boolean sortByRows,
Range.SortDataOption dataOption)
Sort range
|
void |
sort(Range index1,
boolean desc1,
Range.SortDataOption dataOption1,
Range index2,
boolean desc2,
Range.SortDataOption dataOption2,
Range index3,
boolean desc3,
Range.SortDataOption dataOption3,
boolean header,
boolean matchCase,
boolean sortByRows)
Sort range
|
void |
sync(RangeRunner run)
Runs runer under synchronization protection
|
Range |
toCellRange(int rowOffset,
int colOffset)
Returns a new range having on cell according to the offset
|
Range |
toColumnRange()
Return a range that represents all rows and between the first-column and last-column of this range
It is a useful when you want to manipulate entire column (such as delete column)
|
Range |
toRowRange()
Return a range that represents all columns and between the first-row and last-row of this range.
|
Range |
toShiftedRange(int rowOffset,
int colOffset)
Return a new range that shift it row and column according to the offset, but has same height and width of original range.
|
void |
unmerge()
Unmerge the range
|
boolean |
unprotectSheet(String password)
Removes protection from a sheet.
|
void |
updateChart(Chart chart)
Notify the component that a chart has change, e.g.
|
Validation |
validate(String editText)
validate the user's input.
|
void |
visit(CellVisitor visitor)
Visits all cells in this range with synchronization protection, make sure you call this in a limited range,
don't use it for all row/column selection, it will spend much time to iterate the cell
|
void setSyncLevel(Range.SyncLevel syncLevel)
syncLevel
- ReadWriteLock getLock()
Book getBook()
Sheet getSheet()
int getColumn()
int getRow()
int getLastColumn()
int getLastRow()
int getRowCount()
int getColumnCount()
Range.CellStyleHelper getCellStyleHelper()
void sync(RangeRunner run)
run
- the runnersetSyncLevel(SyncLevel)
void visit(CellVisitor visitor)
visitor
- the cell visitorsetSyncLevel(SyncLevel)
Range toShiftedRange(int rowOffset, int colOffset)
rowOffset
- row offset of the new range, zero basecolOffset
- column offset of the new range, zero baseRange toCellRange(int rowOffset, int colOffset)
rowOffset
- row offset of the cell, zero basecolOffset
- column offset of the cell, zero baseRange toRowRange()
Range toColumnRange()
boolean isWholeColumn()
boolean isWholeRow()
boolean isWholeSheet()
void clearContents()
void clearStyles()
void clearAll()
Range paste(Range dest)
dest
- the destinationRange pasteSpecial(Range dest, Range.PasteType type, Range.PasteOperation op, boolean skipBlanks, boolean transpose)
dest
- the destinationtype
- the paste typeop
- the paste operationskipBlanks
- skip blanks or nottranspose
- transpose the cell or notIllegalOpArgumentException
void applyBorders(Range.ApplyBorderType applyType, CellStyle.BorderType borderType, String htmlColor)
applyType
- the apply typeborderType
- the border typehtmlColor
- the color (#rgb-hex-code, e.x #FF00FF)boolean hasMergedCell()
boolean isMergedCell()
void merge(boolean across)
across
- true if merge horizontally onlyvoid unmerge()
void insert(Range.InsertShift shift, Range.InsertCopyOrigin copyOrigin)
toRowRange()
first, to insert a column, you have to call toColumnRange()
first.shift
- the shift direction of original cellscopyOrigin
- copy the format from nearby cells when inserting new cellsvoid delete(Range.DeleteShift shift)
toRowRange()
first, to delete a column, you have to call toColumnRange()
first.shift
- the shift direction when deleting.void sort(boolean desc)
desc
- true for descent, false for ascentvoid sort(boolean desc, boolean header, boolean matchCase, boolean sortByRows, Range.SortDataOption dataOption)
desc
- true for descent, false for ascentheader
- includes header or notmatchCase
- matches character chase of notsortByRows
- sorts by row or notdataOption
- data option for sortvoid sort(Range index1, boolean desc1, Range.SortDataOption dataOption1, Range index2, boolean desc2, Range.SortDataOption dataOption2, Range index3, boolean desc3, Range.SortDataOption dataOption3, boolean header, boolean matchCase, boolean sortByRows)
index1
- the sort index 1desc1
- true for descent, false for ascent of index 1header
- includes header or notmatchCase
- matches character chase of notsortByRows
- sorts by row or notdataOption1
- data option 1 for sortindex2
- the sort index 2desc2
- true for descent, false for ascent of index 2dataOption2
- data option 2 for sortindex3
- the sort index 3desc3
- true for descent, false for ascent of index 3dataOption3
- data option31 for sortvoid autoFill(Range dest, Range.AutoFillType fillType)
dest
- the destination rangefillType
- the fill typevoid fillDown()
void fillLeft()
void fillUp()
void fillRight()
void shift(int rowOffset, int colOffset)
void setColumnWidth(int widthPx)
widthPx
- width in pixeltoColumnRange()
void setRowHeight(int heightPx)
heightPx
- height in pixeltoRowRange()
void setRowHeight(int heightPx, boolean isCustom)
heightPx
- height in pixelisCustom
- true if it's set by users manually, false if it's determined by the system automaticallyvoid setCellStyle(CellStyle nstyle)
nstyle
- new cell stylegetCellStyleHelper()
,
getCellStyle()
void setCellEditText(String editText)
editText
- the eidtText, it could be a string, integer string, date string or a formula (start with '=')IllegalFormulaException
void setCellValue(Object value)
value
- the cell value, could be null, String, Number, Date or Booleanvoid setCellHyperlink(Hyperlink.HyperlinkType type, String address, String label)
type
- the hyperlink typeaddress
- the address, e.x http://www.zkoss.orglabel
- the label to displayHyperlink getCellHyperlink()
Hyperlink
object of this range.CellStyle getCellStyle()
CellData getCellData()
String getCellEditText()
CellData.getEditText()
String getCellFormatText()
CellData.getFormatText()
String getCellDataFormat()
Object getCellValue()
CellData.getValue()
void protectSheet(String password)
protectSheet(String password,
boolean allowSelectingLockedCells, boolean allowSelectingUnlockedCells,
boolean allowFormattingCells, boolean allowFormattingColumns, boolean allowFormattingRows,
boolean allowInsertColumns, boolean allowInsertRows, boolean allowInsertingHyperlinks,
boolean allowDeletingColumns, boolean allowDeletingRows,
boolean allowSorting, boolean allowFiltering,
boolean allowUsingPivotTables, boolean drawingObjects, boolean scenarios)
instead
Enable sheet protection and apply a password, or null to disable protectionvoid setDisplaySheetGridlines(boolean enable)
enable
- true to displayboolean isDisplaySheetGridlines()
void setHidden(boolean hidden)
toRowRange()
first, to hide/un-hide a column, you have to call toColumnRange()
or a whole column range.hidden
- hide or notvoid setSheetName(String name)
name
- new sheet name, it must be not same as another sheet name in it's owner book.String getSheetName()
void setSheetOrder(int pos)
pos
- the positionint getSheetOrder()
boolean isProtected()
boolean isAutoFilterEnabled()
Range findAutoFilterRange()
void enableAutoFilter(boolean enable)
enable
- true to enablevoid enableAutoFilter(int field, Range.AutoFilterOperation filterOp, Object criteria1, Object criteria2, Boolean showButton)
field
- the filed index (according to current range, 1 base)filterOp
- auto filter operationcriteria1
- criteria for autofiltercriteria2
- criteria for autofiltershowButton
- true/false for show/hide dropdown button, null will keep the original setting.void resetAutoFilter()
void applyAutoFilter()
Picture addPicture(SheetAnchor anchor, byte[] image, Picture.Format format)
anchor
- the anchor for pictureimage
- the image binary arrayformat
- the image formatvoid deletePicture(Picture picture)
picture
- void movePicture(SheetAnchor anchor, Picture picture)
anchor
- the anchor to re-allocatepicture
- the picture to re-allocateChart addChart(SheetAnchor anchor, Chart.Type type, Chart.Grouping grouping, Chart.LegendPosition pos)
anchor
- the destination anchor of the charttype
- the chart typegrouping
- the chart groupingpos
- the legend positionvoid deleteChart(Chart chart)
chart
- the chart to deletevoid moveChart(SheetAnchor anchor, Chart chart)
anchor
- the new location to movechart
- the chart to moveSheet createSheet(String name)
name
- the sheet name, it must not be same as another sheet name in book of this rangeSheet cloneSheet(String name)
name
- the sheet name, it must not be the same as another sheet name in book of this rangevoid setFreezePanel(int rowfreeze, int columnfreeze)
rowfreeze
- the number of row to freeze, 0 means no freezecolumnfreeze
- the number of column to freeze, 0 means no freezevoid deleteSheet()
void notifyChange()
void notifyChange(String[] variables)
variables
- changed variablesString asString()
void updateChart(Chart chart)
chart
- the chart that contains changeSRange getInternalRange()
void createName(String nameName)
Name
that refer to this range.nameName
- name of the Name
that you can refer in formulas.boolean isSheetProtected()
void protectSheet(String password, boolean allowSelectingLockedCells, boolean allowSelectingUnlockedCells, boolean allowFormattingCells, boolean allowFormattingColumns, boolean allowFormattingRows, boolean allowInsertColumns, boolean allowInsertRows, boolean allowInsertingHyperlinks, boolean allowDeletingColumns, boolean allowDeletingRows, boolean allowSorting, boolean allowFiltering, boolean allowUsingPivotTables, boolean drawingObjects, boolean scenarios)
Sheet
so that it cannot be modified. You can call
this method on a protected sheet to change its allowed options if the
same password is supplied; otherwise, it is ignored. A protected sheet
can be unprotected by calling unprotectSheet(String password)
.
change the protection options; make sure providepassword
- a case-sensitive password for the sheet; null or empty string means protect the sheet without password.allowSelectingLockedCells
- true to allow select locked cells; default to true.allowSelectingUnlockedCells
- true to allow select unlocked cells; default to true.allowFormattingCells
- true to allow user to format any cell on the protected sheet; default false.allowFormattingColumns
- true to allow user to format any columns on the protected sheet; default false.allowFormattingRows
- true to allow user to format any rows on the protected sheet; default false.allowInsertColumns
- true to allow user to insert columns on the protected sheet; default false.allowInsertRows
- true to allow user to insert rows on the protected sheet; default false.allowInsertingHyperlinks
- true to allow user to insert hyperlinks on the protected sheet; default false.allowDeletingColumns
- true to allow user to delete columns on the protected sheet; default false.allowDeletingRows
- true to allow user to delete rows on the protected sheet; default false.allowSorting
- true to allow user to sort on the protected sheet; default false.allowFiltering
- true to allow user to set filters on the protected sheet; default false.allowUsingPivotTables
- true to allow user to use pivot table reports on the protected sheet; default false.drawingObjects
- true to protect objects; default to false.scenarios
- true to protect scenarios; default to true.unprotectSheet(String password)
,
isProtected()
void protectSheet(SheetProtection protection)
Sheet
so that it cannot be modified.protection
- SheetProtection
boolean unprotectSheet(String password)
password
- a case-sensitive password used to unprotect the sheet. If
the sheet isn't protected with a password, this argument is ignored. If you
omit this argument for a sheet that is protected with a password, you'll
be prompted for the password.SheetProtection getSheetProtection()
SheetProtection
which tells what are allowed operations for
a protected sheet of this range.Validation validate(String editText)
editText
- void setValidation(Validation.ValidationType validationType, boolean ignoreBlank, Validation.OperatorType operatorType, boolean inCellDropDown, String formula1, String formula2, boolean showInput, String inputTitle, String inputMessage, boolean showError, Validation.AlertStyle alertStyle, String errorTitle, String errorMessage)
Validation
to this range.
There are two ways to input list items for data validation in argument
"formula1" and "formula2". One is to specify a range via a formula such
as "=A1:A4" where the values in the cells of the range is the constrained
value list; another is to input literally the constrained value list
delimited by comma such as "1, 2, 3, 4". Note that when you input a
formula, must lead the formula with an equal sign('=').validationType
- the type of this validationignoreBlank
- true if blank values are permitted.operatorType
- the operator for this validationinCellDropDown
- true if want to display dropdown list for acceptable values.formula1
- the value or expression associated with conditional format or data validation.formula2
- the 2nd part of a conditional format or data validation. Useful only when operatorType is BETWEEN or NOT_BETWEEN.showInput
- true to show the input message.inputTitle
- title for the data-validation input dialog box.inputMessage
- message for the data-validation input dialog box.showError
- true to show the error message.alertStyle
- validation alert style.errorTitle
- title of the data validation error dialog.errorMessage
- data validation error message.List<Validation> getValidations()
Validation
associated with the left-top cell
of this range; return null if no associated validation.void deleteValidation()
Validation
associated in the specified range.void setCellRichText(String html)
html
- String getCellRichText()
Font getOrCreateFont(Font.Boldweight boldweight, Color color, int fontHeight, String fontName, boolean italic, boolean strikeout, Font.TypeOffset typeOffset, Font.Underline underline)
void refresh(boolean includeDependants)
refresh(boolean includeDependents, boolean false, boolean true)
.boolean setAutoRefresh(boolean auto)
auto
- whether refresh automaticallyvoid refresh(boolean includeDependents, boolean clearCache, boolean enforceEval)
void setSheetVisible(Range.SheetVisible visible)
visible
- Range.SheetVisible
String getCommentRichText()
void setCommentRichText(String html)
void setCommentVisible(boolean visible)
visible
- boolean isCommentVisible()
void notifyChange(Range.CellAttribute cellAttr)
void setNameName(String namename, String newname)
namename
- name of the Name(or Table)newname
- new name for the Name(or Table)void setStringValue(String value)
value
- CellRegion getMergedRegion()
CellRegion getDataRegion()
Sheet cloneSheetFrom(String name, Sheet sheet)
name
- the name of the new created sheet; null would try to use
the sheet name of the specified source sheet; if the same sheet name
already used in the owner book of this range then use default "SheetX"
name where X is the next sheet number of the owner book of this range.sheet
- the source sheet to clone from to the owner book of this
range.Copyright © 2020. All rights reserved.