예제 #1
0
파일: TestSheet.cs 프로젝트: 89sos98/npoi
        /**
         * @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;
        }
예제 #2
0
파일: TestSheet.cs 프로젝트: 89sos98/npoi
 private static Record[] GetSheetRecords(InternalSheet s, int offset)
 {
     RecordInspector.RecordCollector rc = new RecordInspector.RecordCollector();
     s.VisitContainedRecords(rc, offset);
     return rc.Records;
 }