public class ReferredArea
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
int |
getEndColumn()
The end column of the area.
|
int |
getEndRow()
The end row of the area.
|
java.lang.String |
getExternalFileName()
Get the external file name if this is an external reference.
|
java.lang.String |
getSheetName()
Indicates which sheet this reference is in.
|
java.lang.String[] |
getSheetNames()
Names of all the worksheets this instance references to.
|
int |
getStartColumn()
The start column of the area.
|
int |
getStartRow()
The start row of the area.
|
java.lang.Object |
getValue(int rowOffset,
int colOffset)
Gets cell value with given offset from the top-left of this area.
|
java.lang.Object |
getValue(int rowOffset,
int colOffset,
boolean calculateFormulas)
Gets cell value with given offset from the top-left of this area.
|
java.lang.Object |
getValues()
Gets cell values in this area.
|
java.lang.Object |
getValues(boolean calculateFormulas)
Gets cell values in this area.
|
boolean |
isArea()
Indicates whether this is an area.
|
boolean |
isEntireColumn()
Indicates whether this area contains all rows(entire column).
|
boolean |
isEntireRow()
Indicates whether this area contains all columns(entire row).
|
boolean |
isExternalLink()
Indicates whether this is an external link.
|
java.lang.String |
toString()
Returns the reference address of this area.
|
public boolean isExternalLink()
public java.lang.String getExternalFileName()
public java.lang.String getSheetName()
Remarks
If it references to multiple worksheets, the returned value is just like the range expression in the formula. For example "Sheet1:Sheet3" for the reference in formula "=SUM(Sheet1:Sheet3!$A$1:$B$2)".public java.lang.String[] getSheetNames()
public boolean isEntireRow()
public boolean isEntireColumn()
public boolean isArea()
Remarks
If this is not an area, only StartRow and StartColumn effect.public int getEndColumn()
public int getStartColumn()
public int getEndRow()
public int getStartRow()
public java.lang.Object getValues()
public java.lang.Object getValues(boolean calculateFormulas)
calculateFormulas - In this range, if there are some formulas that have not been calculated,
this flag denotes whether those formulas should be calculated recursivelypublic java.lang.Object getValue(int rowOffset,
int colOffset)
rowOffset - row offset from the start row of this areacolOffset - column offset from the start row of this areapublic java.lang.Object getValue(int rowOffset,
int colOffset,
boolean calculateFormulas)
rowOffset - row offset from the start row of this areacolOffset - column offset from the start row of this areacalculateFormulas - Whether calculate it recursively if the specified reference is formulapublic java.lang.String toString()
toString in class java.lang.ObjectSee Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.