|
|||||||||
| 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.XlsRange
public class XlsRange
Represents the XlsRange.
| Constructor Summary | |
|---|---|
XlsRange(java.lang.Object parent)
|
|
XlsRange(java.lang.Object parent,
int column,
int row)
|
|
XlsRange(java.lang.Object parent,
int firstCol,
int firstRow,
int lastCol,
int lastRow)
|
|
| Method Summary | |
|---|---|
IXLSRange |
activate()
Active single cell in the worksheet |
IXLSRange |
activate(boolean scroll)
Activates a single cell, scroll to it and activates the corresponding sheet. |
CellRange |
addCombinedRange(CellRange cr)
Add combined range |
ICommentShape |
addComment()
Adds a comment to the range. |
ICommentShape |
addComment(boolean bIsParseOptions)
Adds a comment to the range. |
void |
autoFitColumns()
Changes the width of the columns in the range to achieve the best fit. |
void |
autoFitRows()
Automatically adjust the height and width of the rows |
void |
borderAround()
Sets around border for current range. |
void |
borderAround(LineStyleType borderLine)
Sets around border for current range. |
void |
borderAround(LineStyleType borderLine,
java.awt.Color borderColor)
Sets around border for current range. |
void |
borderAround(LineStyleType borderLine,
ExcelColors borderColor)
Sets around border for current range. |
void |
borderInside()
Sets inside border for current range. |
void |
borderInside(LineStyleType borderLine)
Sets inside border for current range. |
void |
borderInside(LineStyleType borderLine,
java.awt.Color borderColor)
Sets inside border for current range. |
void |
borderInside(LineStyleType borderLine,
ExcelColors borderColor)
Sets inside border for current range. |
void |
borderNone()
Sets none border for current range. |
void |
clear(ExcelClearOptions option)
Clears the cell based on clear options. |
void |
clearAll()
Clears the entire object. |
void |
clearConditionalFormats()
Clears conditional formats. |
void |
clearContents()
Clear the contents of the Range. |
void |
collapseGroup(GroupByType groupBy)
Collapses current group. |
void |
convertToNumber()
Convert number that stored as text to number |
IXLSRange |
deepClone(java.lang.Object parent,
java.util.HashMap rangeNames,
XlsWorkbook book)
Clones current IXLSRange. |
void |
dispose()
This method is called when disposing the object. |
void |
expandGroup(GroupByType groupBy)
Expands current group. |
void |
freezePanes()
Freezes panes at the current range in the worksheet. |
IXLSRange |
get(int row,
int column)
Gets / sets cell by row and column index. |
IXLSRange |
get(int row,
int column,
int lastRow,
int lastColumn)
Get cell range. |
IXLSRange |
get(java.lang.String name)
Gets cell range. |
IXLSRange |
get(java.lang.String name,
boolean IsR1C1Notation)
Gets cell range. |
boolean |
getBooleanValue()
Returns or sets the bool value of the specified range. |
IBorders |
getBorders()
Returns a Borders collection that represents the borders of a style or a range of cells (including a range defined as part of a conditional format). |
BuiltInStyles |
getBuiltInStyle()
Gets/sets built in style. |
java.util.ArrayList<CellRange> |
getCellList()
Returns a Range object that represents the cells in the specified range. |
int |
getCellsCount()
Gets number of cells. |
java.lang.String |
getCellStyleName()
Gets/sets name of the style for the current range. |
int |
getColumn()
Returns the number of the first column in the first area in the specified range. |
int |
getColumnCount()
Gets number of columns. |
int |
getColumnGroupLevel()
Column group level. |
IXLSRange[] |
getColumns()
For a Range object, it returns an array of Range objects that represent the columns in the specified range. |
double |
getColumnWidth()
Returns or sets the width of all columns in the specified range. |
ICommentShape |
getComment()
Returns a Comment object that represents the comment associated with the cell in the upper-left corner of the range. |
ConditionalFormats |
getConditionalFormats()
Collection of conditional formats for the range. |
int |
getCount()
Returns the number of objects in the collection. |
Validation |
getDataValidation()
Gets dataValidation of the sheet. |
java.util.Date |
getDateTimeValue()
Gets DateTime value of the range. |
java.lang.String |
getDisplayedText()
Gets cell displayed text. |
IXLSRange |
getEndCell()
Returns a Range object that represents the cell at the end of the region that contains the source range. |
IXLSRange |
getEntireColumn()
Returns a Range object that represents the entire column (or columns) that contains the specified range. |
IXLSRange |
getEntireRow()
Returns a Range object that represents the entire row (or rows) that contains the specified range. |
java.lang.String |
getEnvalutedValue()
Returns the calculated value of a formula. |
java.lang.String |
getErrorValue()
Gets or sets error value of this range. |
int |
getExtendedFormatIndex()
Sets / gets index of extended format. |
java.lang.String |
getFormula()
Returns the object's formula in A1-style notation and in the language of the macro. |
java.lang.String |
getFormulaArray()
Returns or sets the array formula of a range. |
java.lang.String |
getFormulaArrayR1C1()
Returns or sets the formula for the object, using R1C1-style notation in the language of the macro |
boolean |
getFormulaBoolValue()
Gets or sets bool value of the formula. |
java.util.Date |
getFormulaDateTime()
Gets or sets bool value of the formula. |
java.lang.String |
getFormulaErrorValue()
Gets or sets error value of the formula. |
double |
getFormulaNumberValue()
Gets the double value of the formula. |
java.lang.String |
getFormulaR1C1()
Returns or sets the formula for the object, using R1C1-style notation in the language of the macro |
java.lang.String |
getFormulaStringValue()
Gets or sets string value of the range. |
java.lang.Object |
getFormulaValue()
Gets formula value. |
HorizontalAlignType |
getHorizontalAlignment()
Returns or sets the horizontal alignment for the specified object. |
IHyperLinks |
getHyperlinks()
Returns hyperlinks for this range. |
java.util.EnumSet<IgnoreErrorType> |
getIgnoreErrorOptions()
Represents ignore error options. |
int |
getIndentLevel()
Returns or sets the indent level for the cell or range. |
int |
getLastColumn()
Gets or sets last column of the range. |
int |
getLastRow()
Gets or sets last row of the range. |
IXLSRange |
getMergeArea()
Returns a Range object that represents the merged range containing the specified cell. |
java.lang.String |
getNewRangeLocation(java.util.HashMap names,
java.lang.String[] sheetName)
Gets new range location. |
java.lang.String |
getNumberFormat()
Returns or sets the format code for the object. |
java.lang.String |
getNumberText()
Returns cell text for number format. |
double |
getNumberValue()
Gets or sets number value of the range. |
java.lang.Object |
getParent()
Parent object for this object. |
java.lang.String |
getRangeAddress()
Returns the range reference in the language of the macro. |
java.lang.String |
getRangeAddressLocal()
Returns the range reference for the specified range in the language of the user. |
java.lang.String |
getRangeGlobalAddress()
Returns the range reference in the language of the macro. |
java.lang.String |
getRangeGlobalAddress2007()
Gets address global in the format required by Excel 2007. |
java.lang.String |
getRangeGlobalAddressWithoutSheetName()
Return global address without worksheet name. |
java.lang.String |
getRangeR1C1Address()
Returns the range reference using R1C1 notation. |
java.lang.String |
getRangeR1C1AddressLocal()
Returns the range reference using R1C1 notation. |
java.awt.Rectangle[] |
getRectangles()
Gets rectangle information of current range. |
IRichTextString |
getRichText()
Returns a RichTextString object that represents the rich text style. |
int |
getRow()
Returns the number of the first row of the first area in the range. |
int |
getRowCount()
Gets number of rows. |
int |
getRowGroupLevel()
Row group level. |
double |
getRowHeight()
Returns the height of all the rows in the range specified, measured in points. |
IXLSRange[] |
getRows()
For a Range object, it returns an array of Range objects that represent the rows in the specified range. |
IStyle |
getStyle()
Returns a Style object that represents the style of the specified range. |
java.lang.String |
getText()
Gets / sets text of range. |
java.lang.String |
getValue()
Returns the value of the specified range. |
java.lang.Object |
getValue2()
Returns or sets the cell value. |
VerticalAlignType |
getVerticalAlignment()
Returns or sets the vertical alignment of the specified object. |
IWorksheet |
getWorksheet()
Returns a worksheet object that represents the worksheet containing the specified range. |
java.lang.String |
getWorksheetName()
Returns name of the parent worksheet. |
CellRange |
groupByColumns(boolean isCollapsed)
Groups columns. |
CellRange |
groupByRows(boolean isCollapsed)
Groups row. |
boolean |
hasBoolean()
Indicates whether range contains bool value. |
boolean |
hasComment()
|
boolean |
hasConditionFormats()
Indicates whether each cell of the range has some conditional formatting. |
boolean |
hasDataValidation()
Indicates whether specified range object has data validation. |
boolean |
hasDateTime()
Determines if all cells in the range contain datetime. |
boolean |
hasError()
Indicates whether range contains error value. |
boolean |
hasExternalFormula()
Check if the formula in the range has external links. |
boolean |
hasFormula()
True if all cells in the range contain formulas; |
boolean |
hasFormulaArray()
Determines if all cells in the range contain array-entered formula. |
boolean |
hasFormulaBoolValue()
Determines if all cells in the range contain formula bool value.. |
boolean |
hasFormulaDateTime()
Indicates if current range has formula value formatted as DateTime. |
boolean |
hasFormulaErrorValue()
Determines if all cells in the range contain error value. |
boolean |
hasFormulaNumberValue()
Indicates whether current range has formula number value. |
boolean |
hasFormulaStringValue()
Indicates whether current range contains formula value which evaluated as string. |
boolean |
hasMerged()
Indicates whether this range is part of merged range. |
boolean |
hasNumber()
Determines if any one cell in the range contain number. |
boolean |
hasPictures()
Indicates whether the range is blank. |
boolean |
hasRichText()
Determines if all cells in the range contain rich text string. |
boolean |
hasString()
Determines if all cells in the range contain string. |
boolean |
hasStyle()
Determines if all cells in the range contain differs from default style. |
IXLSRange |
intersect(IXLSRange range)
Returns intersection of this range with the specified one. |
boolean |
isAllNumber()
Determines if all cells in the range contain number. |
boolean |
isBlank()
Indicates whether the range is blank. |
boolean |
isFormulaHidden()
Determines if the formula will be hidden when the worksheet is protected. |
void |
isFormulaHidden(boolean value)
|
boolean |
isGroupedByColumn()
Indicates whether this range is grouped by column. |
boolean |
isGroupedByRow()
Indicates whether this range is grouped by row. |
boolean |
isInitialized()
Indicates whether range has been initialized. |
java.lang.Boolean |
isStringsPreserved()
Indicates whether all values in the range are preserved as strings. |
void |
isStringsPreserved(java.lang.Boolean value)
Indicates whether all values in the range are preserved as strings. |
boolean |
isWrapText()
Determines if Microsoft Excel wraps the text in the object. |
void |
isWrapText(boolean value)
True if Microsoft Excel wraps the text in the object. |
java.util.Iterator |
iterator()
|
java.awt.geom.Dimension2D |
measureString(java.lang.String measureString)
Measures size of the string. |
void |
merge()
Creates a merged cell from the specified range object. |
void |
merge(boolean clearCells)
Creates a merged cell from the specified Range object. |
IXLSRange |
merge(IXLSRange range)
Creates a merged cell from the specified Range object. |
void |
partialClear()
Partially clear range. |
void |
replace(java.lang.String oldValue,
DataColumn newValues,
boolean isFieldNamesShown)
Replaces cells' values with new data. |
void |
replace(java.lang.String oldValue,
DataTable newValues,
boolean isFieldNamesShown)
Replaces cells' values with new data. |
void |
replace(java.lang.String oldValue,
java.util.Date newValue)
Replaces cells' values with new data. |
void |
replace(java.lang.String oldValue,
double newValue)
Replaces cells' values with new data. |
void |
replace(java.lang.String oldValue,
double[] newValues,
boolean isVertical)
Replaces cells' values with new data. |
void |
replace(java.lang.String oldValue,
int[] newValues,
boolean isVertical)
Replaces cells' values with new data. |
void |
replace(java.lang.String oldValue,
java.lang.String newValue)
Replaces cells' values with new data. |
void |
replace(java.lang.String oldValue,
java.lang.String[] newValues,
boolean isVertical)
Replaces cells' values with new data. |
void |
set(int row,
int column,
IXLSRange value)
sets cell by row and column index. |
void |
setBooleanValue(boolean value)
Returns or sets the bool value of the specified range. |
void |
setBuiltInStyle(BuiltInStyles value)
Gets/sets built in style. |
void |
setCellStyleName(java.lang.String cellStyleName)
Sets name of the style for the current range. |
void |
setColumnWidth(double columnWidth)
Sets the width of the column. |
void |
setDataValidation(XlsValidation dv)
Sets data validation for the range. |
void |
setDateTimeValue(java.util.Calendar calendar)
Sets Calendar value of the range. |
void |
setDateTimeValue(java.util.Date date)
Sets Date value of the range. |
void |
setErrorValue(java.lang.String value)
Gets or sets error value of this range. |
void |
setExtendedFormatIndex(int value)
Sets / gets index of extended format. |
void |
setExtendedFormatIndexs(int index)
Sets index of extended format that defines style for this range.. |
void |
setFormula(java.lang.String formula)
Sets the object's formula in A1-style notation and in the language of the macro. |
void |
setFormulaArray(java.lang.String value)
Returns or sets the array formula of a range. |
void |
setFormulaArrayR1C1(java.lang.String value)
Returns or sets the formula for the object, using R1C1-style notation in the language of the macro |
void |
setFormulaBoolValue(boolean value)
Gets or sets bool value of the formula. |
void |
setFormulaDateTime(java.util.Date value)
Gets or sets bool value of the formula. |
void |
setFormulaErrorValue(java.lang.String value)
Sets the error value of the formula. |
void |
setFormulaNumberValue(double value)
Gets or sets double value of the formula. |
void |
setFormulaR1C1(java.lang.String value)
Returns or sets the formula for the object, using R1C1-style notation in the language of the macro |
void |
setFormulaStringValue(java.lang.String value)
Gets or sets string value of the range. |
void |
setHorizontalAlignment(HorizontalAlignType value)
Returns or sets the horizontal alignment for the specified object. |
void |
setIgnoreErrorOptions(java.util.EnumSet<IgnoreErrorType> ignoreErrorOptions)
Sets ignore error options. |
void |
setIndentLevel(int value)
Returns or sets the indent level for the cell or range. |
void |
setLastColumn(int value)
Gets or sets last column of the range. |
void |
setLastRow(int value)
Gets or sets last row of the range. |
void |
setNumberFormat(java.lang.String numberFormat)
Sets number format |
void |
setNumberValue(double numberValue)
Sets number value |
void |
setObjectValue(java.lang.Object value)
sets the cell value. |
void |
setRowHeight(double rowHeight)
Sets the height of the row |
void |
setRowHeight(double rowHeight,
boolean bIsBadFontHeight)
Sets row height. |
void |
setStyle(IStyle value)
Returns a Style object that represents the style of the specified range. |
void |
setText(java.lang.String text)
Sets text |
void |
setValue(java.lang.String value)
Sets the value of the specified range. |
void |
setVerticalAlignment(VerticalAlignType value)
Returns or sets the vertical alignment of the specified object. |
CellRange |
ungroupByColumns()
Ungroups column. |
CellRange |
ungroupByRows()
Ungroups row. |
void |
unMerge()
Separates a merged area into individual cells. |
void |
updateRange(int startRow,
int startColumn,
int endRow,
int endColumn)
Update region of range |
| Methods inherited from interface com.spire.xls.core.ICombinedRange |
|---|
getRectanglesCount |
| Methods inherited from interface com.spire.xls.core.IXLSRange |
|---|
expandGroup, getInnerFormulaDateTime, getTimeSpanValue |
| Constructor Detail |
|---|
public XlsRange(java.lang.Object parent)
public XlsRange(java.lang.Object parent,
int column,
int row)
public XlsRange(java.lang.Object parent,
int firstCol,
int firstRow,
int lastCol,
int lastRow)
| Method Detail |
|---|
public boolean getBooleanValue()
getBooleanValue in interface IXLSRangepublic void setBooleanValue(boolean value)
setBooleanValue in interface IXLSRangevalue - public IBorders getBorders()
getBorders in interface IXLSRangepublic BuiltInStyles getBuiltInStyle()
getBuiltInStyle in interface IXLSRangepublic void setBuiltInStyle(BuiltInStyles value)
setBuiltInStyle in interface IXLSRangepublic java.util.ArrayList<CellRange> getCellList()
getCellList in interface IXLSRangepublic java.lang.String getCellStyleName()
getCellStyleName in interface IXLSRangepublic void setCellStyleName(java.lang.String cellStyleName)
cellStyleName - public int getColumn()
getColumn in interface IXLSRangepublic int getColumnGroupLevel()
getColumnGroupLevel in interface IXLSRangepublic IXLSRange[] getColumns()
getColumns in interface IXLSRangepublic double getColumnWidth()
getColumnWidth in interface IXLSRangepublic void setColumnWidth(double columnWidth)
columnWidth - public ICommentShape getComment()
getComment in interface IXLSRangepublic ConditionalFormats getConditionalFormats()
getConditionalFormats in interface IXLSRangepublic int getCount()
getCount in interface IXLSRangepublic Validation getDataValidation()
getDataValidation in interface IXLSRangepublic java.util.Date getDateTimeValue()
getDateTimeValue in interface IXLSRangepublic void setDateTimeValue(java.util.Date date)
public void setDateTimeValue(java.util.Calendar calendar)
public IXLSRange getEndCell()
getEndCell in interface IXLSRangepublic IXLSRange getEntireColumn()
getEntireColumn in interface IXLSRangepublic IXLSRange getEntireRow()
getEntireRow in interface IXLSRangepublic java.lang.String getEnvalutedValue()
getEnvalutedValue in interface IXLSRangepublic java.lang.String getErrorValue()
getErrorValue in interface IXLSRangepublic void setErrorValue(java.lang.String value)
value - public java.lang.String getFormula()
getFormula in interface IXLSRangepublic void setFormula(java.lang.String formula)
formula - public java.lang.String getFormulaArray()
getFormulaArray in interface IXLSRangepublic void setFormulaArray(java.lang.String value)
value - public java.lang.String getFormulaArrayR1C1()
getFormulaArrayR1C1 in interface IXLSRangepublic void setFormulaArrayR1C1(java.lang.String value)
value - public boolean getFormulaBoolValue()
getFormulaBoolValue in interface IXLSRangepublic void setFormulaBoolValue(boolean value)
value - public java.util.Date getFormulaDateTime()
public void setFormulaDateTime(java.util.Date value)
public java.lang.String getFormulaErrorValue()
getFormulaErrorValue in interface IXLSRangepublic void setFormulaErrorValue(java.lang.String value)
value - public double getFormulaNumberValue()
getFormulaNumberValue in interface IXLSRangepublic void setFormulaNumberValue(double value)
setFormulaNumberValue in interface IXLSRangevalue - public java.lang.String getFormulaR1C1()
getFormulaR1C1 in interface IXLSRangepublic void setFormulaR1C1(java.lang.String value)
value - public java.lang.String getFormulaStringValue()
getFormulaStringValue in interface IXLSRangepublic void setFormulaStringValue(java.lang.String value)
setFormulaStringValue in interface IXLSRangevalue - public java.lang.Object getFormulaValue()
public boolean hasBoolean()
hasBoolean in interface IXLSRangepublic boolean hasComment()
public int getColumnCount()
public int getRowCount()
public boolean hasDataValidation()
hasDataValidation in interface IXLSRangepublic boolean hasDateTime()
hasDateTime in interface IXLSRangepublic boolean hasError()
hasError in interface IXLSRangepublic boolean hasExternalFormula()
hasExternalFormula in interface IXLSRangepublic boolean hasFormula()
hasFormula in interface IXLSRangepublic boolean hasFormulaArray()
hasFormulaArray in interface IXLSRangepublic boolean hasFormulaBoolValue()
hasFormulaBoolValue in interface IXLSRangepublic boolean hasFormulaDateTime()
hasFormulaDateTime in interface IXLSRangepublic boolean hasFormulaErrorValue()
hasFormulaErrorValue in interface IXLSRangepublic boolean hasFormulaNumberValue()
hasFormulaNumberValue in interface IXLSRangepublic boolean hasFormulaStringValue()
hasFormulaStringValue in interface IXLSRangepublic boolean hasMerged()
hasMerged in interface IXLSRangepublic boolean hasNumber()
hasNumber in interface IXLSRangepublic boolean hasPictures()
public boolean hasRichText()
hasRichText in interface IXLSRangepublic boolean hasString()
hasString in interface IXLSRangepublic boolean hasStyle()
hasStyle in interface IXLSRangepublic HorizontalAlignType getHorizontalAlignment()
getHorizontalAlignment in interface IXLSRangepublic void setHorizontalAlignment(HorizontalAlignType value)
public IHyperLinks getHyperlinks()
public java.util.EnumSet<IgnoreErrorType> getIgnoreErrorOptions()
getIgnoreErrorOptions in interface IXLSRangepublic void setIgnoreErrorOptions(java.util.EnumSet<IgnoreErrorType> ignoreErrorOptions)
setIgnoreErrorOptions in interface IXLSRangepublic int getIndentLevel()
getIndentLevel in interface IXLSRangepublic void setIndentLevel(int value)
public boolean isAllNumber()
public boolean isBlank()
isBlank in interface IXLSRangepublic boolean isFormulaHidden()
isFormulaHidden in interface IXLSRangepublic void isFormulaHidden(boolean value)
public boolean isGroupedByColumn()
isGroupedByColumn in interface IXLSRangepublic boolean isGroupedByRow()
isGroupedByRow in interface IXLSRangepublic boolean isInitialized()
isInitialized in interface IXLSRangepublic java.lang.Boolean isStringsPreserved()
isStringsPreserved in interface IXLSRangepublic void isStringsPreserved(java.lang.Boolean value)
isStringsPreserved in interface IXLSRangepublic boolean isWrapText()
isWrapText in interface IXLSRangepublic void isWrapText(boolean value)
IXLSRange
isWrapText in interface IXLSRangepublic int getLastColumn()
getLastColumn in interface IXLSRangepublic void setLastColumn(int value)
public int getLastRow()
getLastRow in interface IXLSRangepublic void setLastRow(int value)
public IXLSRange getMergeArea()
getMergeArea in interface IXLSRangepublic java.lang.String getDisplayedText()
public boolean hasConditionFormats()
public java.lang.String getNumberFormat()
getNumberFormat in interface IXLSRangepublic void setNumberFormat(java.lang.String numberFormat)
public java.lang.String getNumberText()
getNumberText in interface IXLSRangepublic double getNumberValue()
getNumberValue in interface IXLSRangepublic void setNumberValue(double numberValue)
numberValue - public java.lang.Object getParent()
getParent in class XlsObjectpublic java.lang.String getRangeAddress()
getRangeAddress in interface IXLSRangepublic java.lang.String getRangeAddressLocal()
getRangeAddressLocal in interface IXLSRangepublic java.lang.String getRangeGlobalAddressWithoutSheetName()
public java.lang.String getRangeGlobalAddress()
getRangeGlobalAddress in interface IXLSRangepublic java.lang.String getRangeR1C1Address()
getRangeR1C1Address in interface IXLSRangepublic java.lang.String getRangeR1C1AddressLocal()
getRangeR1C1AddressLocal in interface IXLSRangepublic IRichTextString getRichText()
getRichText in interface IXLSRangepublic int getRow()
getRow in interface IXLSRangepublic int getRowGroupLevel()
getRowGroupLevel in interface IXLSRangepublic double getRowHeight()
getRowHeight in interface IXLSRangepublic void setRowHeight(double rowHeight)
rowHeight - public IXLSRange[] getRows()
getRows in interface IXLSRangepublic int getExtendedFormatIndex()
"System.ArgumentException" - When method is applied for the range that contains
more than one cell.public void setExtendedFormatIndex(int value)
value - public void setExtendedFormatIndexs(int index)
index - Index to set.
public void setRowHeight(double rowHeight,
boolean bIsBadFontHeight)
rowHeight - Row heightbIsBadFontHeight - Indicates whether font and row height are not compatible.public IStyle getStyle()
getStyle in interface IXLSRangepublic void setStyle(IStyle value)
public java.lang.String getText()
getText in interface IXLSRangepublic void setText(java.lang.String text)
text -
public IXLSRange get(int row,
int column,
int lastRow,
int lastColumn)
get in interface IXLSRange
public IXLSRange get(int row,
int column)
get in interface IXLSRange
public void set(int row,
int column,
IXLSRange value)
IXLSRange
set in interface IXLSRange
public IXLSRange get(java.lang.String name,
boolean IsR1C1Notation)
get in interface IXLSRangepublic IXLSRange get(java.lang.String name)
get in interface IXLSRangepublic java.lang.String getValue()
getValue in interface IXLSRangepublic void setValue(java.lang.String value)
setValue in interface IXLSRangepublic java.lang.Object getValue2()
getValue2 in interface IXLSRangepublic void setObjectValue(java.lang.Object value)
setObjectValue in interface IXLSRangepublic VerticalAlignType getVerticalAlignment()
getVerticalAlignment in interface IXLSRangepublic void setVerticalAlignment(VerticalAlignType value)
setVerticalAlignment in interface IXLSRangepublic IWorksheet getWorksheet()
getWorksheet in interface IXLSRange
public java.lang.String getNewRangeLocation(java.util.HashMap names,
java.lang.String[] sheetName)
getNewRangeLocation in interface ICombinedRangenames - Worksheet names.sheetName - New worksheet name.
public IXLSRange deepClone(java.lang.Object parent,
java.util.HashMap rangeNames,
XlsWorkbook book)
deepClone in interface ICombinedRangeparent - Parent object.rangeNames - Hash table with new names.book - Parent workbook.
public void clearConditionalFormats()
clearConditionalFormats in interface ICombinedRangepublic java.awt.Rectangle[] getRectangles()
getRectangles in interface ICombinedRangepublic java.lang.String getWorksheetName()
getWorksheetName in interface ICombinedRangepublic int getCellsCount()
getCellsCount in interface ICombinedRangepublic java.lang.String getRangeGlobalAddress2007()
getRangeGlobalAddress2007 in interface ICombinedRangepublic IXLSRange activate(boolean scroll)
activate in interface IXLSRangescroll - True to scroll to the cell
public IXLSRange activate()
public ICommentShape addComment()
addComment in interface IXLSRangepublic void autoFitColumns()
autoFitColumns in interface IXLSRangepublic void autoFitRows()
autoFitRows in interface IXLSRangepublic void borderAround()
borderAround in interface IXLSRangepublic void borderAround(LineStyleType borderLine)
borderAround in interface IXLSRangeborderLine - Represents border line.
public void borderAround(LineStyleType borderLine,
java.awt.Color borderColor)
borderAround in interface IXLSRangeborderLine - Represents border line.borderColor - Represents border color.
public void borderAround(LineStyleType borderLine,
ExcelColors borderColor)
borderAround in interface IXLSRangeborderLine - Represents border line.borderColor - Represents border color as ExcelColors.public void borderInside()
borderInside in interface IXLSRangepublic void borderInside(LineStyleType borderLine)
borderInside in interface IXLSRangeborderLine - Represents border line.
public void borderInside(LineStyleType borderLine,
java.awt.Color borderColor)
borderInside in interface IXLSRangeborderLine - Sets inside border for current range.borderColor - Represents border color.
public void borderInside(LineStyleType borderLine,
ExcelColors borderColor)
borderInside in interface IXLSRangeborderLine - Represents border line.borderColor - Represents border color as ExcelColors.public void borderNone()
borderNone in interface IXLSRangepublic void clear(ExcelClearOptions option)
clear in interface IXLSRangeoption - public void clearAll()
public void clearContents()
clearContents in interface IXLSRangepublic CellRange groupByColumns(boolean isCollapsed)
isCollapsed - Indicates whether group should be collapsed.
public CellRange groupByRows(boolean isCollapsed)
isCollapsed - Indicates whether group should be collapsed.
public CellRange ungroupByColumns()
public CellRange ungroupByRows()
public void collapseGroup(GroupByType groupBy)
collapseGroup in interface IXLSRangegroupBy - This parameter specifies whether the grouping should be performed by rows or by columns.public void dispose()
dispose in class XlsObjectpublic void expandGroup(GroupByType groupBy)
expandGroup in interface IXLSRangegroupBy - This parameter specifies whether the grouping should be performed by rows or by columns.public void freezePanes()
freezePanes in interface IXLSRangepublic IXLSRange merge(IXLSRange range)
merge in interface IXLSRangerange - The Range to merge with.
public IXLSRange intersect(IXLSRange range)
intersect in interface IXLSRangerange - The Range with which to intersect.
public java.awt.geom.Dimension2D measureString(java.lang.String measureString)
measureString - String to measure.
public void merge()
merge in interface IXLSRangepublic void merge(boolean clearCells)
merge in interface IXLSRangeclearCells - Indicates whether to clear unnecessary cells.public void partialClear()
public void unMerge()
unMerge in interface IXLSRangepublic java.util.Iterator iterator()
public ICommentShape addComment(boolean bIsParseOptions)
bIsParseOptions -
public void setDataValidation(XlsValidation dv)
dv - Data validation to set.
public void replace(java.lang.String oldValue,
java.lang.String[] newValues,
boolean isVertical)
oldValue - Value to search for.newValues - The replacement value.isVertical - Indicates whether to insert values vertically or horizontally.
public void replace(java.lang.String oldValue,
java.lang.String newValue)
oldValue - Value to search for.newValue - The replacement value.
public void replace(java.lang.String oldValue,
double[] newValues,
boolean isVertical)
oldValue - Value to search for.newValues - DataColumn to replace.isVertical - Indicates whether to insert values vertically or horizontally.
public void replace(java.lang.String oldValue,
int[] newValues,
boolean isVertical)
oldValue - Value to search for.newValues - The replacement value.isVertical - Indicates whether to insert values vertically or horizontally.
public void replace(java.lang.String oldValue,
DataTable newValues,
boolean isFieldNamesShown)
oldValue - Value to search for.newValues - The replacement value.isFieldNamesShown - Indicates whether to insert values vertically or horizontally.
public void replace(java.lang.String oldValue,
java.util.Date newValue)
oldValue - Value to search fornewValue - The replacement value.
public void replace(java.lang.String oldValue,
double newValue)
oldValue - Value to search for.newValue -
public void replace(java.lang.String oldValue,
DataColumn newValues,
boolean isFieldNamesShown)
oldValue - Value to search for.newValues - DataColumn to replace.isFieldNamesShown - Indicates whether to insert values vertically or horizontally.public CellRange addCombinedRange(CellRange cr)
cr - Cell range
public void updateRange(int startRow,
int startColumn,
int endRow,
int endColumn)
startRow - first RowstartColumn - last RowendRow - last ColumnendColumn - endColumnpublic void convertToNumber()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||