public class DiscontiguousRefStruct extends Object implements Serializable
| Constructor and Description |
|---|
DiscontiguousRefStruct(byte[] sqrefrec,
XLSRecord parentRec)
Takes a binary array representing a sqref struct.
|
DiscontiguousRefStruct(String ranges,
XLSRecord parentRec)
Handles creating a SqRefStruct via a string passed in, this should be in the format
reference1,reference2,
or
'A1:A5,G21,H33'
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRef(String range)
Adds a ref to the existing group of refs
|
boolean |
containsReference(int[] rowcol)
Determines if the reference structure encompasses the
reference value passed in.
|
int |
getNumRefs()
Return the number of references this structure contains
|
byte[] |
getRecordData()
Returns the binary record of this SQRef for output to Biff8
|
String[] |
getRefs()
Returns the refs in R1C1 format
|
int[] |
getRowColBounds()
Get the bounding rectangle of all references in this structure in the format
{topRow,leftCol,bottomRow,rightCol}
Note that if you are including 3dReferences this could return inconsistent results
|
String |
toString()
Return toString as an array of references
|
public DiscontiguousRefStruct(String ranges, XLSRecord parentRec)
public DiscontiguousRefStruct(byte[] sqrefrec,
XLSRecord parentRec)
sqrefs - public String[] getRefs()
public byte[] getRecordData()
public int getNumRefs()
public String toString()
public void addRef(String range)
range - public boolean containsReference(int[] rowcol)
rowcol - public int[] getRowColBounds()
Copyright © 2002–2019 Starter Inc.. All rights reserved.