Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
        /**
         * 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);
        }
Exemplo n.º 3
0
 public void AddCellRangeAddress(CellRangeAddress cra)
 {
     _list.Add(cra);
 }
Exemplo n.º 4
0
 /**
  * @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));
 }