Exemplo n.º 1
1
        /**
         * Constructor - used when copying sheets
         *
         * @param index the index into the name table
         */
        public NameRecord(CSharpJExcel.Jxl.Read.Biff.NameRecord sr, int ind)
            : base(Type.NAME)
        {
            data = sr.getData();
            name = sr.getName();
            sheetRef = sr.getSheetRef();
            index = ind;
            modified = false;

            // Copy the ranges
            CSharpJExcel.Jxl.Read.Biff.NameRecord.NameRange[] r = sr.getRanges();
            ranges = new NameRange[r.Length];
            for (int i = 0; i < ranges.Length; i++)
                {
                ranges[i] = new NameRange(r[i]);
                }
        }