Esempio n. 1
0
        /**
         * Constructor when parsing a string via the api
         *
         * @param nm the name string
         * @param nt the name table
         */
        public NameRange(string nm,WorkbookMethods nt)
        {
            name = nm;
            nameTable = nt;

            int? nameIndex = nameTable.getNameIndex(name);

            if (nameIndex == null || (int)nameIndex < 0)
                throw new FormulaException(FormulaException.CELL_NAME_NOT_FOUND,name);

            index = (int)nameIndex;
            index += 1; // indexes are 1-based
        }
Esempio n. 2
0
        /// <summary> Constructor when parsing a string via the api
        ///
        /// </summary>
        /// <param name="nm">the name string
        /// </param>
        /// <param name="nt">the name table
        /// </param>
        public NameRange(string nm, WorkbookMethods nt)
        {
            name      = nm;
            nameTable = nt;

            index = nameTable.getNameIndex(name);

            if (index < 0)
            {
                throw new FormulaException(FormulaException.cellNameNotFound, name);
            }

            index += 1;             // indexes are 1-based
        }
Esempio n. 3
0
        /**
         * Constructor when parsing a string via the api
         *
         * @param nm the name string
         * @param nt the name table
         */
        public NameRange(string nm, WorkbookMethods nt)
        {
            name      = nm;
            nameTable = nt;

            int?nameIndex = nameTable.getNameIndex(name);

            if (nameIndex == null || (int)nameIndex < 0)
            {
                throw new FormulaException(FormulaException.CELL_NAME_NOT_FOUND, name);
            }

            index  = (int)nameIndex;
            index += 1;             // indexes are 1-based
        }