/** * @return the value calculated for the position of the first DBCELL record for this sheet. * That value is1 found on the IndexRecord. */ private static int GetDbCellRecordPos(InternalSheet sheet) { MyIndexRecordListener myIndexListener = new MyIndexRecordListener(); sheet.VisitContainedRecords(myIndexListener, 0); IndexRecord indexRecord = myIndexListener.GetIndexRecord(); int dbCellRecordPos = indexRecord.GetDbcellAt(0); return dbCellRecordPos; }
private static Record[] GetSheetRecords(InternalSheet s, int offset) { RecordInspector.RecordCollector rc = new RecordInspector.RecordCollector(); s.VisitContainedRecords(rc, offset); return rc.Records; }