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); }