コード例 #1
0
ファイル: FeatRecord.cs プロジェクト: hanwangkun/npoi
        public FeatRecord(RecordInputStream in1)
        {
            futureHeader = new FtrHeader(in1);

            isf_sharedFeatureType = in1.ReadShort();
            reserved1 = (byte)in1.ReadByte();
            reserved2 = in1.ReadInt();
            int cref = in1.ReadUShort();
            cbFeatData = in1.ReadInt();
            reserved3 = in1.ReadShort();

            cellRefs = new CellRangeAddress[cref];
            for (int i = 0; i < cellRefs.Length; i++)
            {
                cellRefs[i] = new CellRangeAddress(in1);
            }

            switch (isf_sharedFeatureType)
            {
                case FeatHdrRecord.SHAREDFEATURES_ISFPROTECTION:
                    sharedFeature = new FeatProtection(in1);
                    break;
                case FeatHdrRecord.SHAREDFEATURES_ISFFEC2:
                    sharedFeature = new FeatFormulaErr2(in1);
                    break;
                case FeatHdrRecord.SHAREDFEATURES_ISFFACTOID:
                    sharedFeature = new FeatSmartTag(in1);
                    break;
                default:
                    System.Console.WriteLine("Unknown Shared Feature " + isf_sharedFeatureType + " found!");
                    break;
            }
        }
コード例 #2
0
        public object Clone()
        {
            FtrHeader result = new FtrHeader
            {
                recordType      = recordType,
                grbitFrt        = grbitFrt,
                associatedRange = associatedRange.Copy()
            };

            return(result);
        }
コード例 #3
0
ファイル: FeatRecord.cs プロジェクト: hanwangkun/npoi
 public FeatRecord()
 {
     futureHeader = new FtrHeader();
     futureHeader.RecordType = (/*setter*/sid);
 }
コード例 #4
0
ファイル: FeatHdrRecord.cs プロジェクト: hanwangkun/npoi
        public FeatHdrRecord(RecordInputStream in1)
        {
            futureHeader = new FtrHeader(in1);

            isf_sharedFeatureType = in1.ReadShort();
            reserved = (byte)in1.ReadByte();
            cbHdrData = in1.ReadInt();
            // Don't process this just yet, need the BOFRecord
            rgbHdrData = in1.ReadRemainder();
        }