public int GetRefIxForSheet(int externalBookIndex, int firstSheetIndex, int lastSheetIndex) { int nItems = _list.Count; for (int i = 0; i < nItems; i++) { RefSubRecord ref1 = GetRef(i); if (ref1.ExtBookIndex != externalBookIndex) { continue; } if (ref1.FirstSheetIndex == firstSheetIndex && ref1.LastSheetIndex == lastSheetIndex) { return(i); } } return(-1); }
/** * Returns the index of the SupBookRecord for this index */ public int GetExtbookIndexFromRefIndex(int refIndex) { RefSubRecord refRec = GetRef(refIndex); return(refRec.ExtBookIndex); }
/** * Adds REF struct (ExternSheetSubRecord) * @param rec REF struct */ public void AddREFRecord(RefSubRecord rec) { _list.Add(rec); }