public class Range
Property Getters/Setters Summary | ||
---|---|---|
java.lang.String | getAddress() | |
Gets address of the range.
|
||
int | getCellCount() | |
Gets all cell count in the range.
|
||
int | getColumnCount() | |
Gets the count of columns in the range.
|
||
double | getColumnWidth() | |
void | setColumnWidth(doublevalue) | |
Sets or gets the column width of this range | ||
Range | getEntireColumn() | |
Gets a Range object that represents the entire column (or columns) that contains the specified range.
|
||
Range | getEntireRow() | |
Gets a Range object that represents the entire row (or rows) that contains the specified range.
|
||
int | getFirstColumn() | |
Gets the index of the first column of the range.
|
||
int | getFirstRow() | |
Gets the index of the first row of the range.
|
||
com.aspose.cells.Hyperlink[] | getHyperlinks() | |
Gets all hyperlink in the range.
|
||
java.lang.String | getName() | |
void | setName(java.lang.Stringvalue) | |
Gets or sets the name of the range. | ||
java.lang.String | getRefersTo() | |
Gets the range's refers to.
|
||
int | getRowCount() | |
Gets the count of rows in the range.
|
||
double | getRowHeight() | |
void | setRowHeight(doublevalue) | |
Sets or gets the height of rows in this range | ||
java.lang.Object | getValue() | |
void | setValue(java.lang.Objectvalue) | |
Gets and sets the value of the range. | ||
Worksheet | getWorksheet() | |
Gets the |
||
Cell | get(int rowOffset, int columnOffset) | |
Gets |
Method Summary | ||
---|---|---|
void | applyStyle(Style style, StyleFlag flag) | |
Applies formats for a whole range.
|
||
void | copy(Range range) | |
Copies data (including formulas), formatting, drawing objects etc. from a source range.
|
||
void | copy(Range range, PasteOptions options) | |
Copying the range with paste special options.
|
||
void | copyData(Range range) | |
Copies cell data (including formulas) from a source range.
|
||
void | copyStyle(Range range) | |
Copies style settings from a source range.
|
||
void | copyValue(Range range) | |
Copies cell value from a source range.
|
||
Cell | getCellOrNull(int rowOffset, int columnOffset) | |
Gets |
||
Range | getOffset(int rowOffset, int columnOffset) | |
Gets |
||
Range | intersect(Range range) | |
Returns a Range object that represents the rectangular intersection of two ranges.
|
||
boolean | isIntersect(Range range) | |
Indicates whether the range is intersect.
|
||
java.util.Iterator | iterator() | |
Gets the enumerator for cells in this Range.
|
||
void | merge() | |
Combines a range of cells into a single cell.
|
||
void | moveTo(int destRow, int destColumn) | |
Move the current range to the dest range.
|
||
void | putValue(java.lang.String stringValue, boolean isConverted, boolean setStyle) | |
Puts a value into the range, if appropriate the value will be converted to other data type and cell's number format will be reset.
|
||
void | setOutlineBorder(int borderEdge, int borderStyle, Color borderColor) | |
Sets outline border around a range of cells.
|
||
void | setOutlineBorders(int borderStyle, com.aspose.cells.Color borderColor) | |
Sets the outline borders around a range of cells with same border style and color.
|
||
void | setOutlineBorders(int[] borderStyles, com.aspose.cells.Color[] borderColors) | |
Sets out line borders around a range of cells.
|
||
void | setStyle(Style style) | |
Sets the style of the range.
|
||
java.lang.String | toString() | |
Returns a string represents the current Range object.
|
||
java.util.ArrayList | union(Range range) | |
Returns the union of two ranges.
|
||
void | unMerge() | |
Unmerges merged cells of this range.
|
public com.aspose.cells.Hyperlink[] getHyperlinks()
public int getRowCount()
public int getColumnCount()
public int getCellCount()
public java.lang.String getName() / public void setName(java.lang.String value)
range.Name = "Sheet1!MyRange";
public java.lang.String getRefersTo()
public java.lang.String getAddress()
public int getFirstRow()
public int getFirstColumn()
public java.lang.Object getValue() / public void setValue(java.lang.Object value)
public double getColumnWidth() / public void setColumnWidth(double value)
public double getRowHeight() / public void setRowHeight(double value)
public Range getEntireColumn()
public Range getEntireRow()
public Worksheet getWorksheet()
public Cell get(int rowOffset, int columnOffset)
public java.util.Iterator iterator()
public boolean isIntersect(Range range)
range
- The range.public Range intersect(Range range)
range
- The intersecting range.public java.util.ArrayList union(Range range)
range
- The rangepublic void merge()
public void unMerge()
public void putValue(java.lang.String stringValue, boolean isConverted, boolean setStyle)
stringValue
- Input valueisConverted
- True: converted to other data type if appropriate.setStyle
- True: set the number format to cell's style when converting to other data typepublic void applyStyle(Style style, StyleFlag flag)
style
- The style object which will be applied.flag
- Flags which indicates applied formatting properties.public void setStyle(Style style)
style
- The Style object.public void setOutlineBorders(int borderStyle, com.aspose.cells.Color borderColor)
borderStyle
- A borderColor
- Border color.public void setOutlineBorders(int[] borderStyles, com.aspose.cells.Color[] borderColors)
borderStyles
- Border styles.borderColors
- Border colors.public void setOutlineBorder(int borderEdge, int borderStyle, Color borderColor)
borderEdge
- A borderStyle
- A borderColor
- Border color.public void moveTo(int destRow, int destColumn)
destRow
- The start row of the dest range.destColumn
- The start column of the dest range.public void copyData(Range range) throws java.lang.Exception
range
- Source public void copyValue(Range range) throws java.lang.Exception
range
- Source public void copyStyle(Range range)
range
- Source public void copy(Range range, PasteOptions options) throws java.lang.Exception
range
- The soure range.options
- The paste special options.public void copy(Range range) throws java.lang.Exception
range
- Source public Cell getCellOrNull(int rowOffset, int columnOffset)
public Range getOffset(int rowOffset, int columnOffset)
rowOffset
- Row offset in this range, zero based.columnOffset
- Column offset in this range, zero based.public java.lang.String toString()