コード例 #1
0
        /// <summary> Constructor
        /// Sets the biff value and adds this type to the array of all types
        ///
        /// </summary>
        /// <param name="v">the biff code for the type
        /// </param>
        private Type(int v)
        {
            Value = v;

            // Add to the list of available types
            NExcel.Biff.Type[] newTypes = new NExcel.Biff.Type[types.Length + 1];
            Array.Copy(types, 0, newTypes, 0, types.Length);
            newTypes[types.Length] = this;
            types = newTypes;
        }
コード例 #2
0
        /// <summary> Standard equals method</summary>
        /// <param name="o">the object to compare
        /// </param>
        /// <returns> TRUE if the objects are equal, FALSE otherwise
        /// </returns>
        public override bool Equals(System.Object o)
        {
            if (o == this)
            {
                return(true);
            }

            if (!(o is NExcel.Biff.Type))
            {
                return(false);
            }

            NExcel.Biff.Type t = (NExcel.Biff.Type)o;

            return(Value == t.Value);
        }
コード例 #3
0
 /// <summary> Constructor used by the writable records
 ///
 /// </summary>
 /// <param name="t">the type
 /// </param>
 protected internal RecordData(NExcel.Biff.Type t)
 {
     code = t.Value;
 }
コード例 #4
0
        static Type()
        {
            types = new NExcel.Biff.Type[0];

            BOF                  = new NExcel.Biff.Type(0x809);
            EOF                  = new NExcel.Biff.Type(0x0a);
            BOUNDSHEET           = new NExcel.Biff.Type(0x85);
            SUPBOOK              = new NExcel.Biff.Type(0x1ae);
            EXTERNSHEET          = new NExcel.Biff.Type(0x17);
            DIMENSION            = new NExcel.Biff.Type(0x200);
            BLANK                = new NExcel.Biff.Type(0x201);
            MULBLANK             = new NExcel.Biff.Type(0xbe);
            ROW                  = new NExcel.Biff.Type(0x208);
            NOTE                 = new NExcel.Biff.Type(0x1c);
            TXO                  = new NExcel.Biff.Type(0x1b6);
            RK                   = new NExcel.Biff.Type(0x7e);
            RK2                  = new NExcel.Biff.Type(0x27e);
            MULRK                = new NExcel.Biff.Type(0xbd);
            INDEX                = new NExcel.Biff.Type(0x20b);
            DBCELL               = new NExcel.Biff.Type(0xd7);
            SST                  = new NExcel.Biff.Type(0xfc);
            COLINFO              = new NExcel.Biff.Type(0x7d);
            EXTSST               = new NExcel.Biff.Type(0xff);
            CONTINUE             = new NExcel.Biff.Type(0x3c);
            LABEL                = new NExcel.Biff.Type(0x204);
            RSTRING              = new NExcel.Biff.Type(0xd6);
            LABELSST             = new NExcel.Biff.Type(0xfd);
            NUMBER               = new NExcel.Biff.Type(0x203);
            NAME                 = new NExcel.Biff.Type(0x18);
            TABID                = new NExcel.Biff.Type(0x13d);
            ARRAY                = new NExcel.Biff.Type(0x221);
            STRING               = new NExcel.Biff.Type(0x207);
            FORMULA              = new NExcel.Biff.Type(0x406);
            FORMULA2             = new NExcel.Biff.Type(0x6);
            SHAREDFORMULA        = new NExcel.Biff.Type(0x4bc);
            FORMAT               = new NExcel.Biff.Type(0x41e);
            XF                   = new NExcel.Biff.Type(0xe0);
            BOOLERR              = new NExcel.Biff.Type(0x205);
            INTERFACEHDR         = new NExcel.Biff.Type(0xe1);
            SAVERECALC           = new NExcel.Biff.Type(0x5f);
            INTERFACEEND         = new NExcel.Biff.Type(0xe2);
            XCT                  = new NExcel.Biff.Type(0x59);
            CRN                  = new NExcel.Biff.Type(0x5a);
            DEFCOLWIDTH          = new NExcel.Biff.Type(0x55);
            DEFAULTROWHEIGHT     = new NExcel.Biff.Type(0x225);
            WRITEACCESS          = new NExcel.Biff.Type(0x5c);
            WSBOOL               = new NExcel.Biff.Type(0x81);
            CODEPAGE             = new NExcel.Biff.Type(0x42);
            DSF                  = new NExcel.Biff.Type(0x161);
            FNGROUPCOUNT         = new NExcel.Biff.Type(0x9c);
            COUNTRY              = new NExcel.Biff.Type(0x8c);
            PROTECT              = new NExcel.Biff.Type(0x12);
            SCENPROTECT          = new NExcel.Biff.Type(0xdd);
            OBJPROTECT           = new NExcel.Biff.Type(0x63);
            PRINTHEADERS         = new NExcel.Biff.Type(0x2a);
            HEADER               = new NExcel.Biff.Type(0x14);
            FOOTER               = new NExcel.Biff.Type(0x15);
            HCENTER              = new NExcel.Biff.Type(0x83);
            VCENTER              = new NExcel.Biff.Type(0x84);
            FILEPASS             = new NExcel.Biff.Type(0x2f);
            SETUP                = new NExcel.Biff.Type(0xa1);
            PRINTGRIDLINES       = new NExcel.Biff.Type(0x2b);
            GRIDSET              = new NExcel.Biff.Type(0x82);
            GUTS                 = new NExcel.Biff.Type(0x80);
            WINDOWPROTECT        = new NExcel.Biff.Type(0x19);
            PROT4REV             = new NExcel.Biff.Type(0x1af);
            PROT4REVPASS         = new NExcel.Biff.Type(0x1bc);
            PASSWORD             = new NExcel.Biff.Type(0x13);
            REFRESHALL           = new NExcel.Biff.Type(0x1b7);
            WINDOW1              = new NExcel.Biff.Type(0x3d);
            WINDOW2              = new NExcel.Biff.Type(0x23e);
            BACKUP               = new NExcel.Biff.Type(0x40);
            HIDEOBJ              = new NExcel.Biff.Type(0x8d);
            NINETEENFOUR         = new NExcel.Biff.Type(0x22);
            PRECISION            = new NExcel.Biff.Type(0xe);
            BOOKBOOL             = new NExcel.Biff.Type(0xda);
            FONT                 = new NExcel.Biff.Type(0x31);
            MMS                  = new NExcel.Biff.Type(0xc1);
            CALCMODE             = new NExcel.Biff.Type(0x0d);
            CALCCOUNT            = new NExcel.Biff.Type(0x0c);
            REFMODE              = new NExcel.Biff.Type(0x0f);
            TEMPLATE             = new NExcel.Biff.Type(0x60);
            OBJPROJ              = new NExcel.Biff.Type(0xd3);
            DELTA                = new NExcel.Biff.Type(0x10);
            MERGEDCELLS          = new NExcel.Biff.Type(0xe5);
            ITERATION            = new NExcel.Biff.Type(0x11);
            STYLE                = new NExcel.Biff.Type(0x293);
            USESELFS             = new NExcel.Biff.Type(0x160);
            HORIZONTALPAGEBREAKS = new NExcel.Biff.Type(0x1b);
            SELECTION            = new NExcel.Biff.Type(0x1d);
            HLINK                = new NExcel.Biff.Type(0x1b8);
            OBJ                  = new NExcel.Biff.Type(0x5d);
            MSODRAWING           = new NExcel.Biff.Type(0xec);
            MSODRAWINGGROUP      = new NExcel.Biff.Type(0xeb);
            LEFTMARGIN           = new NExcel.Biff.Type(0x26);
            RIGHTMARGIN          = new NExcel.Biff.Type(0x27);
            TOPMARGIN            = new NExcel.Biff.Type(0x28);
            BOTTOMMARGIN         = new NExcel.Biff.Type(0x29);
            EXTERNNAME           = new NExcel.Biff.Type(0x23);
            PALETTE              = new NExcel.Biff.Type(0x92);
            PLS                  = new NExcel.Biff.Type(0x4d);
            SCL                  = new NExcel.Biff.Type(0xa0);
            PANE                 = new NExcel.Biff.Type(0x41);
            WEIRD1               = new NExcel.Biff.Type(0xef);
            SORT                 = new NExcel.Biff.Type(0x90);
            // Chart types
            FONTX   = new NExcel.Biff.Type(0x1026);
            IFMT    = new NExcel.Biff.Type(0x104e);
            FBI     = new NExcel.Biff.Type(0x1060);
            UNKNOWN = new NExcel.Biff.Type(0xffff);
        }
コード例 #5
0
 /// <summary> Constructor used by the writable records
 ///
 /// </summary>
 /// <param name="t">the biff type of this record
 /// </param>
 protected internal WritableRecordData(NExcel.Biff.Type t) : base(t)
 {
 }