コード例 #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;
 }