public int GetRefIxForSheet(int externalBookIndex, int sheetIndex) { int nItems = _list.Count; for (int i = 0; i < nItems; i++) { RefSubRecord ref1 = GetRef(i); if (ref1.ExtBookIndex != externalBookIndex) { continue; } if (ref1.FirstSheetIndex == sheetIndex && ref1.LastSheetIndex == sheetIndex) { return(i); } } return(-1); }
/** * Adds REF struct (ExternSheetSubRecord) * @param rec REF struct */ public void AddREFRecord(RefSubRecord rec) { _list.Add(rec); }
/** * Adds REF struct (ExternSheetSubRecord) * @param rec REF struct */ public void AddREFRecord(RefSubRecord rec) { _list.Add(rec); }
/** * Constructs a Extern Sheet record and Sets its fields appropriately. * @param in the RecordInputstream to Read the record from */ public ExternSheetRecord(RecordInputStream in1) { _list = new ArrayList(); int nItems = in1.ReadShort(); for (int i = 0; i < nItems; ++i) { RefSubRecord rec = new RefSubRecord(in1); _list.Add(rec); } }