|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.spire.ms.System.Collections.CollectionBase
com.spire.xls.core.spreadsheet.collections.CollectionExtended
com.spire.xls.core.spreadsheet.collections.XlsRangesCollection
public class XlsRangesCollection
Summary description for RangesCollection.
| Constructor Summary | |
|---|---|
XlsRangesCollection(java.lang.Object parent)
Creates new instance of RangesCollection. |
|
| Method Summary | |
|---|---|
IXLSRange |
activate(boolean scroll)
Activages a single cell, scroll to it and activates the respective sheet To select a range of cells, use the Select method. |
ICommentShape |
addComment()
Adds comment to the range. |
void |
autoFitColumns()
Autofits all columns. |
void |
autoFitRows()
Autofits all 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 |
clearConditionalFormats()
Clears conditional formats. |
void |
collapseGroup(GroupByType groupBy)
Collapses current group. |
IXLSRange |
deepClone(java.lang.Object parent,
java.util.HashMap hashNewNames,
XlsWorkbook book)
Clones current IXLSRange. |
void |
expandGroup(GroupByType groupBy)
Expands current group. |
void |
expandGroup(GroupByType groupBy,
int flags)
Expands current group. |
void |
freezePanes()
Freezes pane at the current range. |
IXLSRange |
get(int index)
Returns item by index from the collection. |
IXLSRange |
get(int row,
int column)
Gets / sets cell by row and index. |
IXLSRange |
get(int row,
int column,
int lastRow,
int lastColumn)
Get cell range. |
IXLSRange |
get(java.lang.String name)
Get cell range. |
IXLSRange |
get(java.lang.String name,
boolean IsR1C1Notation)
Gets cell range. |
boolean |
getBooleanValue()
Gets / sets boolean value that is contained by this 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. |
int |
getCellsCount()
Number of cells in the range. |
java.lang.String |
getCellStyleName()
Returns name of the Style object that represents the style of the specified range. |
int |
getColumn()
Returns the number of the first column in the first area in the specified range. |
int |
getColumnGroupLevel()
Column group level. |
IXLSRange[] |
getColumns()
For a Range object, 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()
Comment assigned to the range. |
ConditionalFormats |
getConditionalFormats()
Collection of conditional formats. |
int |
getCount()
Returns the number of objects in the collection. |
Validation |
getDataValidation()
Data validation for the range. |
java.util.Date |
getDateTimeValue()
Gets DateTime contained by this cell. |
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 |
getErrorValue()
Gets / sets error value that is contained by this range. |
java.lang.String |
getFormula()
Returns or sets the object's formula in A1-style notation and in the language of the macro. |
java.lang.String |
getFormulaArray()
Represents array-entered formula. |
java.lang.String |
getFormulaArrayR1C1()
Returns or sets the array-entered formula in R1C1-style notation and in the language of the macro. |
boolean |
getFormulaBoolValue()
Returns the calculated value of the formula as a boolean. |
java.util.Date |
getFormulaDateTime()
Get formula DateTime value contained by this cell. |
java.lang.String |
getFormulaErrorValue()
Returns the calculated value of the formula as a string. |
double |
getFormulaNumberValue()
Gets / sets number value evaluated by formula. |
java.lang.String |
getFormulaR1C1()
Returns or sets the object's formula in R1C1-style notation and in the language of the macro. |
java.lang.String |
getFormulaStringValue()
Gets / sets string value evaluated by formula. |
HorizontalAlignType |
getHorizontalAlignment()
Returns or sets the horizontal alignment for the specified object. |
IHyperLinks |
getHyperlinks()
Returns hyperlinks for this ranges collection. |
java.util.EnumSet<IgnoreErrorType> |
getIgnoreErrorOptions()
Represents ignore error options. |
int |
getIndentLevel()
Returns or sets the indent level for the cell or range. |
int |
getLastColumn()
Returns last column of the range. |
int |
getLastRow()
Returns 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 address of range. |
java.lang.String |
getNumberFormat()
Format of current cell. |
java.lang.String |
getNumberText()
Returns cell value after number format application. |
double |
getNumberValue()
Gets / sets double value of the range. |
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 |
getRangeR1C1Address()
Returns the range reference in the language of the macro using R1C1-style reference. |
java.lang.String |
getRangeR1C1AddressLocal()
Returns the range reference for the specified range in the language of the user using R1C1 style reference . |
java.awt.Rectangle[] |
getRectangles()
Returns array that contains information about range. |
int |
getRectanglesCount()
Returns number of rectangles returned by GetRectangles method. |
IRichTextString |
getRichText()
String with rich text formatting. |
int |
getRow()
Returns the number of the first row of the first area in the range. |
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, 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 string value of the range. |
com.spire.ms.System.TimeSpan |
getTimeSpanValue()
Gets / sets time value of the range. |
java.lang.String |
getValue()
Returns or sets 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()
Gets name of the parent worksheet. |
boolean |
hasBoolean()
Indicates whether range contains bool value. |
boolean |
hasDataValidation()
Indicates whether specified range object has data validation. |
boolean |
hasDateTime()
Indicates whether range contains DateTime value. |
boolean |
hasError()
Indicates whether range contains error value. |
boolean |
hasExternalFormula()
Indicates is current range has external formula. |
boolean |
hasFormula()
True if all cells in the range contain formulas; False if at least one of the cells in the range doesn't contain a formula. |
boolean |
hasFormulaArray()
Indicates whether range contains array-entered formula. |
boolean |
hasFormulaBoolValue()
Indicates if current range has formula bool value. |
boolean |
hasFormulaDateTime()
Indicates if current range has formula value formatted as DateTime. |
boolean |
hasFormulaErrorValue()
Indicates if current range has formula error value. |
boolean |
hasMerged()
Indicates whether this range is part of merged range. |
boolean |
hasNumber()
Indicates whether the range contains number. |
boolean |
hasRichText()
Indicates whether cell contains formatted rich text string. |
boolean |
hasString()
Indicates whether the range contains String. |
boolean |
hasStyle()
Indicates whether range has default style. |
IXLSRange |
intersect(IXLSRange range)
Returns intersection of this range with the specified one. |
boolean |
isBlank()
Indicates whether the range is blank. |
boolean |
isFormulaHidden()
True if the formula will be hidden when the worksheet is protected. |
boolean |
isGroupedByColumn()
Indicates whether this range is grouped by column. |
boolean |
isGroupedByRow()
Indicates whether this range is grouped by row. |
boolean |
isInitialized()
Indicates whether cell is initialized. |
java.lang.Boolean |
isStringsPreserved()
Indicates whether all values in the range are preserved as strings. |
boolean |
isWrapText()
True if Microsoft Excel wraps the text in the object. |
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)
Returns merge of this range with the specified one. |
void |
remove(IXLSRange range)
Removes range from the collection. |
void |
setDateTimeValue(java.util.Date data)
Gets DateTime contained by this cell. |
void |
setFormulaDateTime(java.util.Date data)
Set formula DateTime value contained by this cell. |
void |
unMerge()
Separates a merged area into individual cells. |
| Methods inherited from interface com.spire.xls.core.IXLSRange |
|---|
clear, clearContents, getCellList, getEnvalutedValue, getInnerFormulaDateTime, hasFormulaNumberValue, hasFormulaStringValue, isStringsPreserved, isWrapText, set, setBooleanValue, setBuiltInStyle, setFormulaNumberValue, setFormulaStringValue, setIgnoreErrorOptions, setObjectValue, setValue, setVerticalAlignment |
| Constructor Detail |
|---|
public XlsRangesCollection(java.lang.Object parent)
parent - Parent object.| Method Detail |
|---|
public java.lang.String getRangeAddress()
getRangeAddress in interface IXLSRangepublic java.lang.String getRangeAddressLocal()
getRangeAddressLocal in interface IXLSRangepublic java.lang.String getRangeGlobalAddress()
getRangeGlobalAddress in interface IXLSRangepublic java.lang.String getRangeR1C1Address()
getRangeR1C1Address in interface IXLSRangepublic java.lang.String getRangeR1C1AddressLocal()
getRangeR1C1AddressLocal in interface IXLSRangepublic boolean getBooleanValue()
getBooleanValue in interface IXLSRangepublic IBorders getBorders()
getBorders in interface IXLSRangepublic int getColumn()
getColumn in interface IXLSRangepublic int getColumnGroupLevel()
getColumnGroupLevel in interface IXLSRangepublic double getColumnWidth()
getColumnWidth in interface IXLSRangepublic int getCount()
getCount in interface IXLSRangepublic java.util.Date getDateTimeValue()
getDateTimeValue in interface IXLSRangepublic void setDateTimeValue(java.util.Date data)
public java.lang.String getNumberText()
getNumberText in interface IXLSRangepublic IXLSRange getEndCell()
getEndCell in interface IXLSRangepublic IXLSRange getEntireColumn()
getEntireColumn in interface IXLSRangepublic IXLSRange getEntireRow()
getEntireRow in interface IXLSRangepublic java.lang.String getErrorValue()
getErrorValue in interface IXLSRangepublic java.lang.String getFormula()
getFormula in interface IXLSRangepublic java.lang.String getFormulaR1C1()
getFormulaR1C1 in interface IXLSRangepublic java.lang.String getFormulaArray()
getFormulaArray in interface IXLSRangepublic java.lang.String getFormulaArrayR1C1()
getFormulaArrayR1C1 in interface IXLSRangepublic boolean isFormulaHidden()
isFormulaHidden in interface IXLSRangepublic java.util.Date getFormulaDateTime()
public void setFormulaDateTime(java.util.Date data)
public boolean hasDataValidation()
hasDataValidation in interface IXLSRangepublic boolean hasBoolean()
hasBoolean in interface IXLSRangepublic boolean hasDateTime()
hasDateTime in interface IXLSRangepublic boolean hasFormulaBoolValue()
hasFormulaBoolValue in interface IXLSRangepublic boolean hasFormulaErrorValue()
hasFormulaErrorValue in interface IXLSRangepublic boolean hasFormulaDateTime()
hasFormulaDateTime in interface IXLSRangepublic boolean hasFormula()
hasFormula in interface IXLSRangepublic boolean hasFormulaArray()
hasFormulaArray in interface IXLSRangepublic boolean hasNumber()
hasNumber in interface IXLSRangepublic boolean hasRichText()
hasRichText in interface IXLSRangepublic boolean hasString()
hasString in interface IXLSRangepublic boolean hasStyle()
hasStyle in interface IXLSRangepublic HorizontalAlignType getHorizontalAlignment()
getHorizontalAlignment in interface IXLSRangepublic IHyperLinks getHyperlinks()
public int getIndentLevel()
getIndentLevel in interface IXLSRangepublic boolean isBlank()
isBlank in interface IXLSRangepublic boolean hasError()
hasError in interface IXLSRangepublic boolean isGroupedByColumn()
isGroupedByColumn in interface IXLSRangepublic boolean isGroupedByRow()
isGroupedByRow in interface IXLSRangepublic boolean isInitialized()
isInitialized in interface IXLSRangepublic int getLastColumn()
getLastColumn in interface IXLSRangepublic int getLastRow()
getLastRow in interface IXLSRangepublic double getNumberValue()
getNumberValue in interface IXLSRangepublic java.lang.String getNumberFormat()
getNumberFormat in interface IXLSRangepublic int getRow()
getRow in interface IXLSRangepublic int getRowGroupLevel()
getRowGroupLevel in interface IXLSRangepublic double getRowHeight()
getRowHeight in interface IXLSRangepublic IXLSRange[] getRows()
getRows in interface IXLSRangepublic IXLSRange[] getColumns()
getColumns in interface IXLSRangepublic IStyle getStyle()
getStyle in interface IXLSRangepublic java.lang.String getCellStyleName()
getCellStyleName in interface IXLSRangepublic java.lang.String getText()
getText in interface IXLSRangepublic com.spire.ms.System.TimeSpan getTimeSpanValue()
getTimeSpanValue in interface IXLSRangepublic java.lang.String getValue()
getValue in interface IXLSRangepublic java.lang.Object getValue2()
getValue2 in interface IXLSRangepublic VerticalAlignType getVerticalAlignment()
getVerticalAlignment in interface IXLSRangepublic IWorksheet getWorksheet()
getWorksheet in interface IXLSRange
public IXLSRange get(int row,
int column)
get in interface IXLSRange
public IXLSRange get(int row,
int column,
int lastRow,
int lastColumn)
get in interface IXLSRangepublic IXLSRange get(java.lang.String name)
get in interface IXLSRange
public IXLSRange get(java.lang.String name,
boolean IsR1C1Notation)
get in interface IXLSRangepublic ConditionalFormats getConditionalFormats()
getConditionalFormats in interface IXLSRangepublic Validation getDataValidation()
getDataValidation in interface IXLSRangepublic java.lang.String getFormulaStringValue()
IXLSRange
getFormulaStringValue in interface IXLSRangepublic double getFormulaNumberValue()
IXLSRange
getFormulaNumberValue in interface IXLSRangepublic boolean getFormulaBoolValue()
getFormulaBoolValue in interface IXLSRangepublic java.lang.String getFormulaErrorValue()
getFormulaErrorValue in interface IXLSRangepublic ICommentShape getComment()
getComment in interface IXLSRangepublic IRichTextString getRichText()
getRichText in interface IXLSRangepublic boolean hasMerged()
hasMerged in interface IXLSRangepublic IXLSRange getMergeArea()
getMergeArea in interface IXLSRangepublic boolean isWrapText()
isWrapText in interface IXLSRangepublic boolean hasExternalFormula()
hasExternalFormula in interface IXLSRangepublic java.util.EnumSet<IgnoreErrorType> getIgnoreErrorOptions()
getIgnoreErrorOptions in interface IXLSRangepublic java.lang.Boolean isStringsPreserved()
isStringsPreserved in interface IXLSRangepublic BuiltInStyles getBuiltInStyle()
getBuiltInStyle in interface IXLSRangepublic java.lang.String getRangeGlobalAddress2007()
getRangeGlobalAddress2007 in interface ICombinedRangepublic IXLSRange activate(boolean scroll)
activate in interface IXLSRangescroll - True to scroll to the cell
public void merge()
merge in interface IXLSRangepublic void merge(boolean clearCells)
merge in interface IXLSRangeclearCells - Indicates whether to clear unnecessary cells.public void unMerge()
unMerge in interface IXLSRangepublic void freezePanes()
freezePanes in interface IXLSRangepublic IXLSRange intersect(IXLSRange range)
intersect in interface IXLSRangerange - The Range with which to intersect.
public IXLSRange merge(IXLSRange range)
merge in interface IXLSRangerange - The Range to merge with.
public void autoFitRows()
autoFitRows in interface IXLSRangepublic void autoFitColumns()
autoFitColumns in interface IXLSRangepublic ICommentShape addComment()
addComment 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 - Represents border line.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 collapseGroup(GroupByType groupBy)
collapseGroup in interface IXLSRangegroupBy - This parameter specifies whether the grouping should be performed by rows or by columns.
public void expandGroup(GroupByType groupBy)
expandGroup in interface IXLSRangegroupBy - This parameter specifies whether the grouping should be performed by rows or by columns.
public void expandGroup(GroupByType groupBy,
int flags)
expandGroup in interface IXLSRangegroupBy - This parameter specifies whether the grouping should be performed by rows or by columns.
flags - Additional option flags.
public java.lang.String getNewRangeLocation(java.util.HashMap names,
java.lang.String[] sheetName)
getNewRangeLocation in interface ICombinedRangenames - HashTable with Worksheet names.sheetName - String that sets as a worksheet name.
public IXLSRange deepClone(java.lang.Object parent,
java.util.HashMap hashNewNames,
XlsWorkbook book)
deepClone in interface ICombinedRangeparent - Parent object.hashNewNames - Hash table with new names.book - Parent workbook.
public int getCellsCount()
getCellsCount in interface ICombinedRangepublic void clearConditionalFormats()
clearConditionalFormats in interface ICombinedRangepublic java.awt.Rectangle[] getRectangles()
getRectangles in interface ICombinedRangepublic int getRectanglesCount()
getRectanglesCount in interface ICombinedRangepublic java.lang.String getWorksheetName()
getWorksheetName in interface ICombinedRangepublic void remove(IXLSRange range)
remove in interface IXLSRangesrange - Range to remove.public IXLSRange get(int index)
get in interface IXLSRanges
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||