public void AddCellRangeAddress(CellRangeAddress cra) { _list.Add(cra); }
/** * @return the total size of for the specified number of ranges, * including the initial 2 byte range count */ public static int GetEncodedSize(int numberOfRanges) { return(2 + CellRangeAddress.GetEncodedSize(numberOfRanges)); }
/** * Add a cell range structure. * * @param firstRow - the upper left hand corner's row * @param firstCol - the upper left hand corner's col * @param lastRow - the lower right hand corner's row * @param lastCol - the lower right hand corner's col * @return the index of this ADDR structure */ public void AddCellRangeAddress(int firstRow, int firstCol, int lastRow, int lastCol) { CellRangeAddress region = new CellRangeAddress(firstRow, lastRow, firstCol, lastCol); AddCellRangeAddress(region); }
/// <summary> /// constructor /// </summary> /// <param name="sheet">the sheet where data located.</param> /// <param name="range">the range within that sheet.</param> public DataMarker(ISheet sheet, CellRangeAddress range) { this.sheet = sheet; this.range = range; }