示例#1
0
        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);
        }
示例#2
0
 /**
  * Adds REF struct (ExternSheetSubRecord)
  * @param rec REF struct
  */
 public void AddREFRecord(RefSubRecord rec)
 {
     _list.Add(rec);
 }