public class RangeImpl extends Object implements SRange, Serializable
SRange.ApplyBorderType, SRange.AutoFilterOperation, SRange.DeleteShift, SRange.FillType, SRange.InsertCopyOrigin, SRange.InsertShift, SRange.PasteOperation, SRange.PasteType, SRange.SheetVisible, SRange.SortDataOption| Constructor and Description | 
|---|
| RangeImpl(SBook book) | 
| RangeImpl(SSheet sheet) | 
| RangeImpl(SSheet sheet,
         CellRegion region) | 
| RangeImpl(SSheet sheet,
         int row,
         int col) | 
| RangeImpl(SSheet sheet,
         int tRow,
         int lCol,
         int bRow,
         int rCol) | 
| Modifier and Type | Method and Description | 
|---|---|
| SChart | addChart(ViewAnchor anchor,
        SChart.ChartType type,
        SChart.ChartGrouping grouping,
        SChart.ChartLegendPosition pos,
        boolean isThreeD)Add a chart into the sheet of this Range | 
| SPicture | addPicture(ViewAnchor anchor,
          byte[] image,
          SPicture.Format format)Add a picture into the sheet of this Range | 
| void | applyAutoFilter()Apply the autofilter with the old condition and current cell values | 
| void | clearAll()Clear data contains, style and unmerge this range | 
| void | clearCellStyles()Clear the cell styles of this Range | 
| void | clearContents()Clears the data from this Range. | 
| SSheet | cloneSheet(String name)Clone sheet as specified in this Range. | 
| SSheet | cloneSheetFrom(String name,
              SSheet sheet)Clone from the specified source sheet to the owner book of this range. | 
| SRange | copy(SRange dstRange)Copy data from this range to the specified destination range. | 
| SRange | copy(SRange dstRange,
    boolean cut)cut the selected range and paste to destination range. | 
| void | createName(String nameName)Create a  SNamethat refer to this range. | 
| SSheet | createSheet(String name)Create sheet of this book as specified in this Range. | 
| void | delete(SRange.DeleteShift shift)Delete cells of this Range. | 
| void | deleteChart(SChart chart)Delete an existing chart from the sheet of this Range. | 
| void | deletePicture(SPicture picture)Delete an existing picture from the sheet of this Range. | 
| void | deleteSheet()Delete sheet of this Range. | 
| void | deleteValidation()Delete the  SDataValidationassociated in the specified range. | 
| SAutoFilter | enableAutoFilter(boolean enable)Enable the auto filter and return it, get null if you disable it. | 
| SAutoFilter | enableAutoFilter(int field,
                SAutoFilter.FilterOp filterOp,
                Object criteria1,
                Object criteria2,
                Boolean visibleDropDown)Filters a list specified by this Range and returns an AutoFilter object. | 
| void | fill(SRange dstRange,
    SRange.FillType fillType)Perform an auto fill on the specified destination Range. | 
| void | fillDown()Fills down from the top cells of this Range to the rest of this Range. | 
| void | fillLeft()Fills left from the rightmost cells of this Range to the rest of this Range. | 
| void | fillRight()Fills right from the leftmost cells of this Range to the rest of this Range. | 
| void | fillUp()Fills up from the bottom cells of this Range to the rest of this Range. | 
| SRange | findAutoFilterRange()To find a range of cells for applying auto filter according to this range. | 
| String | getCellDataFormat()Gets the first(top-left) cell's format,
 if the cell's format is the special LOCALE aware format (such as m/d/yyyy), 
 it transfer the format by LOCALE(e.g m/d/yyyy will transfer to yyyy/m/d in TW locale) | 
| String | getCellFormatText()Gets the first(top-left) cell's formatted text,
 if the cell's format is the special LOCALE aware format (such as m/d/yyyy), 
 it will formats the value by transferred format (e.g m/d/yyyy will transfer to yyyy/m/d in TW locale) | 
| SCellStyle | getCellStyle()Gets the first(top-left) cell's style | 
| int | getColumn()Returns the number of the 1st column of the 1st area in this Range(0-based; i.e. | 
| SRange | getColumns()Returns a  SRangethat represent columns of the 1st selected area 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. | 
| String | getEditText()Return the edit text of this Range. | 
| SHyperlink | getHyperlink()Returns the hyperlink of this Range. | 
| int | getLastColumn()Returns the number of the last column of the 1st area in this Range(0-based; i.e. | 
| int | getLastRow()Returns the number of the last row of the 1st area in this Range(0-based; i.e. | 
| 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. | 
| SRange | getOffset(int rowOffset,
         int colOffset)Returns a  SRangethat represents a range that offset from this Range. | 
| SFont | getOrCreateFont(SFont.Boldweight boldweight,
               String htmlColor,
               int fontHeight,
               String fontName,
               boolean italic,
               boolean strikeout,
               SFont.TypeOffset typeOffset,
               SFont.Underline underline)Get font if exists or create font if not exists from the book of this 
 range and return it. | 
| String | getRichText()Return the rich edit text of the left top cell of this Range. | 
| int | getRow()Returns the number of the 1st row of the 1st area in this Range(0-based; i.e. | 
| SRange | getRows()Returns a  SRangethat represent rows of the 1st selected area of this Range. | 
| SSheet | getSheet()Returns associate  SSheetof this range. | 
| SSheetProtection | getSheetProtection()Gets  SSheetProtectionprotection options that tells what are 
 allowed operations for the protected sheet of the first region of this 
 range. | 
| List<SDataValidation> | getValidations()Gets  SDataValidations associated with this range; if more than 
 one validation is present, will return at most two. | 
| Object | getValue()Returns left top cell value of this Range. | 
| void | insert(SRange.InsertShift shift,
      SRange.InsertCopyOrigin copyOrigin)Insert cells of this Range. | 
| boolean | isAnyCellProtected()Returns whether any cell is protected and locked in this Range. | 
| 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 | isProtected()Gets the first region's protection status; return true if the sheet of
 the first region is protected and some cells in the region is locked. | 
| boolean | isSheetProtected()Gets whether the sheet of the first region of this Range is protected. | 
| boolean | isWholeColumn()Check if this range cover an entire columns (form 0, and last row to the max available column of a sheet) | 
| boolean | isWholeRow()Check if this range cover an entire rows (form 0, and last row to the max available row of a sheet) | 
| boolean | isWholeSheet()Check if this range cover an entire sheet | 
| void | merge(boolean across)Merge cells of this range into a merged cell. | 
| void | move(int nRow,
    int nCol)Move this range to a new place as specified by row offset (negative value to move up; 
 positive value to move down) and column offset(negative value to move left; positive value to move right) | 
| void | moveChart(SChart chart,
         ViewAnchor anchor)Move the chart to the new anchor. | 
| void | movePicture(SPicture picture,
           ViewAnchor anchor)Update picture anchor. | 
| void | notifyChange()Notify this range has been changed. | 
| void | notifyChange(CellAttribute cellAttr)Notify this range has been changed with the specified attribute. | 
| void | notifyChange(String[] variables)Notify the variables in this range has been changed. | 
| void | notifyCustomEvent(String customEventName,
                 Object data,
                 boolean writelock)Send a custom model event to all book's listener, the event name must not conflict with that in  ModelEvents | 
| SRange | pasteSpecial(SRange dstRange,
            SRange.PasteType pasteType,
            SRange.PasteOperation pasteOp,
            boolean skipBlanks,
            boolean transpose)Pastes to a destination Range from this range. | 
| SRange | pasteSpecial0(SRange dstRange,
             PasteOption option) | 
| void | protectSheet(String password)Deprecated.  | 
| 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  Sheetso that it cannot be modified. | 
| void | refresh(boolean includeDependants)Evaluate(if not cached), update data model, and refresh UI of this range 
 and its dependent cells if the includeDependents is true. | 
| void | refresh(boolean includeDependants,
       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()Reset the autofilter, clear the condition, shows all the hidden row | 
| 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 | setBorders(SRange.ApplyBorderType borderType,
          SBorder.BorderType lineStyle,
          String color)Adds/Remove border of all cells within this range upon the specified border type. | 
| void | setCellStyle(SCellStyle style)Sets a Style object to this Range. | 
| void | setColumnWidth(int widthPx)Sets column width in unit of pixel | 
| void | setColumnWidth(int widthPx,
              boolean custom)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 | setDisplayGridlines(boolean show)Sets whether show the gridlines of the sheets in this Range. | 
| void | setEditText(String editText)Set plain text as input by the end user. | 
| void | setFreezePanel(int numOfRow,
              int numOfColumn)Set the freeze panel | 
| void | setHidden(boolean hidden)Sets whether this rows or columns are hidden(useful only if this Range cover entire column or entire row) | 
| protected void | setHiddenInLock(boolean hidden) | 
| void | setHyperlink(SHyperlink.HyperlinkType linkType,
            String address,
            String display)Sets the hyperlink of this 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 | setRichText(String html)Set rich text into the left top cell of this range. | 
| void | setRowHeight(int heightPx)Sets row height in unit of pixel | 
| void | setRowHeight(int heightPx,
            boolean custom)Sets the height(in pixel) of row in this range, it effect to whole row. | 
| void | setSheetName(String newname)Set(Rename) the name of the sheet as specified in this Range. | 
| void | setSheetOrder(int pos)Sets the order of the sheet as specified in this Range. | 
| void | setSheetVisible(SRange.SheetVisible visible)Set Sheet visibility; can be SheetVisible.VISIBLE, SheetVisible.HIDDEN,
 and SheetVisible.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 | setValidation(SDataValidation.ValidationType validationType,
             boolean ignoreBlank,
             SDataValidation.OperatorType operatorType,
             boolean inCellDropDown,
             String formula1,
             String formula2,
             boolean showInput,
             String inputTitle,
             String inputMessage,
             boolean showError,
             SDataValidation.AlertStyle alertStyle,
             String errorTitle,
             String errorMessage)Add if not exist or modify an existing  SDataValidationto this range. | 
| void | setValue(Object value)Set value into this Range. | 
| void | sort(SRange key1,
    boolean descending1,
    SRange.SortDataOption dataOption1,
    SRange key2,
    boolean descending2,
    SRange.SortDataOption dataOption2,
    SRange key3,
    boolean descending3,
    SRange.SortDataOption dataOption3,
    int hasHeader,
    boolean matchCase,
    boolean sortByRows)Sort this Range according the specified parameters | 
| void | unmerge()Un-merge a merged cell in this range to separated cells. | 
| boolean | unprotectSheet(String password)Removes protection from a sheet. | 
| void | updateChart(SChart chart)Notify the model that a chart contains change, for example, chart data changes. | 
| SDataValidation | validate(String editText)Returns whether the plain text input by the end user is valid or not;
 note the validation only applies to the left-top cell of this Range. | 
public RangeImpl(SBook book)
public RangeImpl(SSheet sheet)
public RangeImpl(SSheet sheet, int row, int col)
public RangeImpl(SSheet sheet, int tRow, int lCol, int bRow, int rCol)
public RangeImpl(SSheet sheet, CellRegion region)
public ReadWriteLock getLock()
public SSheet getSheet()
SRangeSSheet of this range.public int getRow()
SRangepublic int getColumn()
SRangepublic int getLastRow()
SRangegetLastRow in interface SRangepublic int getLastColumn()
SRangegetLastColumn in interface SRangepublic void setRichText(String html)
SRangesetRichText in interface SRangepublic String getRichText()
SRangegetRichText in interface SRangepublic void setValue(Object value)
SRangepublic void clearContents()
SRangeclearContents in interface SRangepublic void clearCellStyles()
SRangeclearCellStyles in interface SRangepublic void clearAll()
SRangepublic void setEditText(String editText)
SRangesetEditText in interface SRangeeditText - the string input by the end user.public String getEditText()
SRangegetEditText in interface SRangepublic void notifyChange()
SRangenotifyChange in interface SRangepublic void notifyChange(CellAttribute cellAttr)
SRangenotifyChange in interface SRangepublic void notifyChange(String[] variables)
SRangenotifyChange in interface SRangepublic boolean isWholeSheet()
SRangeisWholeSheet in interface SRangepublic boolean isWholeRow()
SRangeisWholeRow in interface SRangepublic SRange getRows()
SRangeSRange that represent rows of the 1st selected area of this Range. Note that only the 1st selected area is considered if this Range is a multiple-selected Range.public void setRowHeight(int heightPx)
SRangesetRowHeight in interface SRangepublic void setRowHeight(int heightPx,
                         boolean custom)
SRangesetRowHeight in interface SRangecustom - mark it as custom value#toRowRange()public boolean isWholeColumn()
SRangeisWholeColumn in interface SRangepublic SRange getColumns()
SRangeSRange that represent columns of the 1st selected area of this Range. Note that only the 1st selected area is considered if this Range is a multiple-selected Range.getColumns in interface SRangeSRange that represent columns of this Range and contains all rows of the column.public void setColumnWidth(int widthPx)
SRangesetColumnWidth in interface SRangepublic void setColumnWidth(int widthPx,
                           boolean custom)
SRangesetColumnWidth in interface SRangewidthPx - width in pixelcustom - mark it as custom value#toColumnRange()public SHyperlink getHyperlink()
SRangegetHyperlink in interface SRangepublic SRange copy(SRange dstRange, boolean cut)
SRangepublic SRange copy(SRange dstRange)
SRangepublic SRange pasteSpecial(SRange dstRange, SRange.PasteType pasteType, SRange.PasteOperation pasteOp, boolean skipBlanks, boolean transpose)
SRangepasteSpecial in interface SRangedstRange - the destination range to be pasted into.pasteType - the part of the range to be pasted.pasteOp - the paste operationskipBlanks - true to not have blank cells in the ranage to paste into destination Range; default false.transpose - true to transpose rows and columns when pasting to this range; default false.public SRange pasteSpecial0(SRange dstRange, PasteOption option)
public void insert(SRange.InsertShift shift, SRange.InsertCopyOrigin copyOrigin)
SRangepublic void delete(SRange.DeleteShift shift)
SRangepublic void merge(boolean across)
SRangepublic void unmerge()
SRangepublic void setBorders(SRange.ApplyBorderType borderType, SBorder.BorderType lineStyle, String color)
SRangesetBorders in interface SRangeborderType - one of SRange.ApplyBorderTypelineStyle - border line style, one of SCellStyle.BorderStylecolor - color in HTML format; i.e., #rrggbb.public void move(int nRow,
                 int nCol)
SRangepublic void setCellStyle(SCellStyle style)
SRangesetCellStyle in interface SRangestyle - the style objectpublic SCellStyle getCellStyle()
SRangegetCellStyle in interface SRangepublic void fill(SRange dstRange, SRange.FillType fillType)
SRangepublic void fillDown()
SRangepublic void fillLeft()
SRangepublic void fillRight()
SRangepublic void fillUp()
SRangepublic void setHidden(boolean hidden)
SRangeprotected void setHiddenInLock(boolean hidden)
public void setDisplayGridlines(boolean show)
SRangesetDisplayGridlines in interface SRangeshow - true to show the gridlines; false to not show the gridlines.@Deprecated public void protectSheet(String password)
protectSheet in interface SRangepassword - to set for protection.public void setHyperlink(SHyperlink.HyperlinkType linkType, String address, String display)
SRangesetHyperlink in interface SRangelinkType - the type of target to link. One of the Hyperlink#LINK_URL, 
 Hyperlink#LINK_DOCUMENT, Hyperlink#LINK_EMAIL, Hyperlink#LINK_FILEaddress - the addressdisplay - the text to display linkpublic Object getValue()
SRangepublic SRange getOffset(int rowOffset, int colOffset)
SRangeSRange that represents a range that offset from this Range.getOffset in interface SRangerowOffset - positive means downward; 0 means don't change row; negative means upward.colOffset - positive means rightward; 0 means don't change column; negative means leftward.SRange that represents a range that offset from this Range.public boolean isAnyCellProtected()
SRangeisAnyCellProtected in interface SRangepublic void deleteSheet()
SRangedeleteSheet in interface SRangepublic SSheet createSheet(String name)
SRangecreateSheet in interface SRangename - the name of the new created sheet; null would use default 
 "SheetX" name where X is the next sheet number.public SSheet cloneSheet(String name)
SRangecloneSheet in interface SRangename - the name of the new created sheet; null would use default
 "SheetX" name where X is the next sheet number.public void setSheetName(String newname)
SRangesetSheetName in interface SRangepublic void setSheetOrder(int pos)
SRangesetSheetOrder in interface SRangepos - the position that we want to insert the sheet into (0 based)public void setFreezePanel(int numOfRow,
                           int numOfColumn)
SRangesetFreezePanel in interface SRangenumOfRow - the number of row to freeze, 0 means no freezenumOfColumn - the number of column to freeze, 0 means no freezepublic String getCellFormatText()
SRangegetCellFormatText in interface SRangepublic String getCellDataFormat()
SRangegetCellDataFormat in interface SRangepublic boolean isSheetProtected()
SRangeisSheetProtected in interface SRangepublic SDataValidation validate(String editText)
SRangepublic SRange findAutoFilterRange()
SRangefindAutoFilterRange in interface SRangeRange.findAutoFilterRange()public SAutoFilter enableAutoFilter(boolean enable)
SRangeenableAutoFilter in interface SRangepublic SAutoFilter enableAutoFilter(int field, SAutoFilter.FilterOp filterOp, Object criteria1, Object criteria2, Boolean visibleDropDown)
SRangeenableAutoFilter in interface SRangefield - offset of the field on which you want to base the filter on (1-based; i.e. leftmost column in this range is field 1).criteria1 - "=" to find blank fields, "<>" to find non-blank fields. If null, means ALL. If filterOp == AutoFilter#FILTEROP_TOP10, 
 then this shall specifies the number of items (e.g. "10").criteria2 - 2nd criteria; used with criteria1 and filterOP to construct compound criteria.visibleDropDown - true to show the autoFilter drop-down arrow for the filtered field; false to hide the autoFilter drop-down arrow; null
 to keep as is.public void resetAutoFilter()
SRangeresetAutoFilter in interface SRangepublic void applyAutoFilter()
SRangeapplyAutoFilter in interface SRangepublic void notifyCustomEvent(String customEventName, Object data, boolean writelock)
SRangeModelEventsnotifyCustomEvent in interface SRangecustomEventName - the event custom eventdata - the datawritelock - use write lock when notify , set true if the synchronized book listener will modify the book.public SPicture addPicture(ViewAnchor anchor, byte[] image, SPicture.Format format)
SRangeaddPicture in interface SRangepublic void deletePicture(SPicture picture)
SRangedeletePicture in interface SRangepicture - the picture to be deletedpublic void movePicture(SPicture picture, ViewAnchor anchor)
SRangemovePicture in interface SRangepicture - the picture to changeanchor - the new anchorpublic SChart addChart(ViewAnchor anchor, SChart.ChartType type, SChart.ChartGrouping grouping, SChart.ChartLegendPosition pos, boolean isThreeD)
SRangepublic void deleteChart(SChart chart)
SRangedeleteChart in interface SRangechart - the chart to be deletedpublic void moveChart(SChart chart, ViewAnchor anchor)
SRangepublic void updateChart(SChart chart)
SRangeupdateChart in interface SRangechart - the chart that changespublic void sort(SRange key1, boolean descending1, SRange.SortDataOption dataOption1, SRange key2, boolean descending2, SRange.SortDataOption dataOption2, SRange key3, boolean descending3, SRange.SortDataOption dataOption3, int hasHeader, boolean matchCase, boolean sortByRows)
SRangesort in interface SRangekey1 - key1 for sortingdescending1 - true to do descending sort; false to do ascending sort for key1.dataOption1 - see numeric String as number or not for key1.key2 - key2 for sortingdescending2 - true to do descending sort; false to do ascending sort for key2.dataOption2 - see numeric String as number or not for key2.key3 - key3 for sortingdescending3 - true to do descending sort; false to do ascending sort for key3.dataOption3 - see numeric String as number or not for key3.hasHeader - whether sort range includes headermatchCase - true to match the string cases; false to ignore string casessortByRows - true to sort by rows(change columns orders); false to sort by columns(change row orders).public void createName(String nameName)
SRangeSName that refer to this range.createName in interface SRangenameName - name of the SName that you can refer in formulas.public boolean isProtected()
SRangeisProtected in interface SRangepublic 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)
SRangeSheet so that it cannot be modified.protectSheet in interface SRangepassword - a case-sensitive password for the sheet; null means sheet is not password protected.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.public boolean unprotectSheet(String password)
SRangeunprotectSheet in interface SRangepassword - 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.public SSheetProtection getSheetProtection()
SRangeSSheetProtection protection options that tells what are 
 allowed operations for the protected sheet of the first region of this 
 range.getSheetProtection in interface SRangepublic void setValidation(SDataValidation.ValidationType validationType, boolean ignoreBlank, SDataValidation.OperatorType operatorType, boolean inCellDropDown, String formula1, String formula2, boolean showInput, String inputTitle, String inputMessage, boolean showError, SDataValidation.AlertStyle alertStyle, String errorTitle, String errorMessage)
SRangeSDataValidation to this range.setValidation in interface SRangevalidationType - 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.public List<SDataValidation> getValidations()
SRangeSDataValidations associated with this range; if more than 
 one validation is present, will return at most two.getValidations in interface SRange#setValidation(ValidationType, boolean, OperatorType, boolean, String, String, boolean, String, String, boolean, AlertStyle, String, String)public void deleteValidation()
SRangeSDataValidation associated in the specified range.deleteValidation in interface SRangepublic SFont getOrCreateFont(SFont.Boldweight boldweight, String htmlColor, int fontHeight, String fontName, boolean italic, boolean strikeout, SFont.TypeOffset typeOffset, SFont.Underline underline)
SRangegetOrCreateFont in interface SRangepublic void refresh(boolean includeDependants)
SRangepublic void refresh(boolean includeDependants,
                    boolean clearCache,
                    boolean enforceEval)
SRangepublic boolean setAutoRefresh(boolean auto)
SRangesetAutoRefresh in interface SRangeauto - whether refresh automaticallypublic void setSheetVisible(SRange.SheetVisible visible)
SRangesetSheetVisible in interface SRangeSRange.SheetVisiblepublic void setCommentRichText(String html)
SRangesetCommentRichText in interface SRangepublic String getCommentRichText()
SRangegetCommentRichText in interface SRangepublic void setCommentVisible(boolean visible)
SRangesetCommentVisible in interface SRangepublic boolean isCommentVisible()
SRangeisCommentVisible in interface SRangepublic void setNameName(String namename, String newname)
SRangesetNameName in interface SRangenamename - name of the Name(or Table)newname - new name for the Name(or Table)public void setStringValue(String value)
SRangesetStringValue in interface SRangepublic CellRegion getMergedRegion()
SRangegetMergedRegion in interface SRangepublic CellRegion getDataRegion()
SRangegetDataRegion in interface SRangepublic SSheet cloneSheetFrom(String name, SSheet sheet)
SRangecloneSheetFrom in interface SRangename - 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.