Ejemplo n.º 1
0
        public override object Clone()
        {
            NumberRecord rec = new NumberRecord();

            CopyBaseFields(rec);
            rec.field_4_value = field_4_value;
            return(rec);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// RK record is a slightly smaller alternative to NumberRecord
        /// POI likes NumberRecord better
        /// </summary>
        /// <param name="rk">The rk.</param>
        /// <returns></returns>
        public static NumberRecord ConvertToNumberRecord(RKRecord rk)
        {
            NumberRecord num = new NumberRecord();

            num.Column  = (rk.Column);
            num.Row     = (rk.Row);
            num.XFIndex = (rk.XFIndex);
            num.Value   = (rk.RKNumber);
            return(num);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Converts a MulRKRecord into an equivalent array of NumberRecords
        /// </summary>
        /// <param name="mrk">The MRK.</param>
        /// <returns></returns>
        public static NumberRecord[] ConvertRKRecords(MulRKRecord mrk)
        {
            NumberRecord[] mulRecs = new NumberRecord[mrk.NumColumns];
            for (int k = 0; k < mrk.NumColumns; k++)
            {
                NumberRecord nr = new NumberRecord();

                nr.Column  = ((short)(k + mrk.FirstColumn));
                nr.Row     = (mrk.Row);
                nr.XFIndex = (mrk.GetXFAt(k));
                nr.Value   = (mrk.GetRKNumberAt(k));
                mulRecs[k] = nr;
            }
            return(mulRecs);
        }