コード例 #1
0
        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);
        }
コード例 #2
0
        /**
         * Returns the index of the SupBookRecord for this index
         */

        public int GetExtbookIndexFromRefIndex(int refIndex)
        {
            RefSubRecord refRec = GetRef(refIndex);

            return(refRec.ExtBookIndex);
        }
コード例 #3
0
        /**
         * Adds REF struct (ExternSheetSubRecord)
         * @param rec REF struct
         */

        public void AddREFRecord(RefSubRecord rec)
        {
            _list.Add(rec);
        }