public class CellRangeAddress extends CellRangeAddressBase
In the Microsoft documentation, this is also known as a
Ref8U - see page 831 of version 1.0 of the documentation.
Note - SelectionRecord
uses the BIFF5 version of this structure
Modifier and Type | Field and Description |
---|---|
static int |
ENCODED_SIZE |
Constructor and Description |
---|
CellRangeAddress(int firstRow,
int lastRow,
int firstCol,
int lastCol) |
CellRangeAddress(RecordInputStream in) |
Modifier and Type | Method and Description |
---|---|
CellRangeAddress |
copy() |
String |
formatAsString() |
String |
formatAsString(String sheetName,
boolean useAbsoluteAddress) |
static int |
getEncodedSize(int numberOfItems) |
int |
serialize(int offset,
byte[] data)
Deprecated.
|
void |
serialize(LittleEndianOutput out) |
static CellRangeAddress |
valueOf(String ref)
Creates a CellRangeAddress from a cell range reference string.
|
getFirstColumn, getFirstRow, getLastColumn, getLastRow, getNumberOfCells, isFullColumnRange, isFullRowRange, isInRange, isInRange, setFirstColumn, setFirstRow, setLastColumn, setLastRow, toString, validate
public static final int ENCODED_SIZE
public CellRangeAddress(int firstRow, int lastRow, int firstCol, int lastCol)
public CellRangeAddress(RecordInputStream in)
public int serialize(int offset, byte[] data)
serialize(LittleEndianOutput)
public void serialize(LittleEndianOutput out)
public CellRangeAddress copy()
public static int getEncodedSize(int numberOfItems)
public String formatAsString()
public String formatAsString(String sheetName, boolean useAbsoluteAddress)
public static CellRangeAddress valueOf(String ref)
ref
- usually a standard area ref (e.g. "B1:D8"). May be a single
cell ref (e.g. "B5") in which case the result is a 1 x 1 cell
range. May also be a whole row range (e.g. "3:5"), or a whole
column range (e.g. "C:F")Copyright © 2020. All rights reserved.