當前位置: 首頁>>代碼示例>>C#>>正文


C# RecordStream.PeekNextChartSid方法代碼示例

本文整理匯總了C#中NPOI.HSSF.Model.RecordStream.PeekNextChartSid方法的典型用法代碼示例。如果您正苦於以下問題:C# RecordStream.PeekNextChartSid方法的具體用法?C# RecordStream.PeekNextChartSid怎麽用?C# RecordStream.PeekNextChartSid使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在NPOI.HSSF.Model.RecordStream的用法示例。


在下文中一共展示了RecordStream.PeekNextChartSid方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: LDAggregate

        public LDAggregate(RecordStream rs, ChartRecordAggregate container)
            :base(RuleName_LD, container)
        {
            legend = (LegendRecord)rs.GetNext();
            rs.GetNext();//BeginRecord
            pos = (PosRecord)rs.GetNext();
            attachedLabel = new AttachedLabelAggregate(rs, this);

            if (rs.PeekNextChartSid() == FrameRecord.sid)
            {
                frame = new FrameAggregate(rs, this);
            }
            if (rs.PeekNextChartSid() == CrtLayout12Record.sid)
            {
                crtLayout = (CrtLayout12Record)rs.GetNext();
            }
            if (rs.PeekNextChartSid() == TextPropsStreamRecord.sid)
            {
                textProps = new TextPropsAggregate(rs, this);
            }
            if (rs.PeekNextChartSid() == CrtMlFrtRecord.sid)
            {
                crtMlFrt = new CrtMlFrtAggregate(rs, this);
            }
            Record r = rs.GetNext();//EndRecord
            Debug.Assert(r.GetType() == typeof(EndRecord));
        }
開發者ID:xiepeixing,項目名稱:npoi,代碼行數:27,代碼來源:LDAggregate.cs

示例2: DVAxisAggregate

        public DVAxisAggregate(RecordStream rs, ChartRecordAggregate container, AxisRecord axis)
            : base(RuleName_DVAXIS, container)
        {
            if (axis == null)
            {
                this.axis = (AxisRecord)rs.GetNext();
                rs.GetNext();
            }
            else
            {
                this.axis = axis;
            }

            if (rs.PeekNextChartSid() == ValueRangeRecord.sid)
                valueRange = (ValueRangeRecord)rs.GetNext();

            if (rs.PeekNextChartSid() == YMultRecord.sid)
                axm = new AXMAggregate(rs, this);

            axs = new AXSAggregate(rs, this);
            if (rs.PeekNextChartSid() == CrtMlFrtRecord.sid)
                crtmlfrt = new CrtMlFrtAggregate(rs, this);

            Record r = rs.GetNext();//EndRecord
            Debug.Assert(r.GetType() == typeof(EndRecord));
        }
開發者ID:ctddjyds,項目名稱:npoi,代碼行數:26,代碼來源:DVAxisAggregate.cs

示例3: AxisParentAggregate

 public AxisParentAggregate(RecordStream rs, ChartRecordAggregate container)
     : base(RuleName_AXISPARENT, container)
 {
     axisPraent = (AxisParentRecord)rs.GetNext();
     rs.GetNext();
     pos = (PosRecord)rs.GetNext();
     if (ChartFormatRecord.sid != rs.PeekNextChartSid())
     {
         try
         {
             axes = new AxesAggregate(rs, this);
         }
         catch
         {
             Debug.Print("not find axes rule records");
             axes = null;
         }
     }
     Debug.Assert(ChartFormatRecord.sid == rs.PeekNextChartSid());
     while (ChartFormatRecord.sid == rs.PeekNextChartSid())
     {
         crtList.Add(new CRTAggregate(rs, this));
     }
     Record r = rs.GetNext();//EndRecord
     Debug.Assert(r.GetType() == typeof(EndRecord));
 }
開發者ID:JnS-Software-LLC,項目名稱:npoi,代碼行數:26,代碼來源:AxisParentAggregate.cs

示例4: GelFrameAggregate

 public GelFrameAggregate(RecordStream rs, ChartRecordAggregate container)
     : base(RuleName_GELFRAME, container)
 {
     gelFrame1 = (GelFrameRecord)rs.GetNext();
     int sid = rs.PeekNextChartSid();
     if (sid == GelFrameRecord.sid)
     {
         gelFrame2 = (GelFrameRecord)rs.GetNext();
         sid = rs.PeekNextChartSid();
     }
     if (sid == ContinueRecord.sid)
     {
         while (rs.PeekNextChartSid() == ContinueRecord.sid)
         {
             continues.Add((ContinueRecord)rs.GetNext());
         }
     }
     if (rs.PeekNextChartSid() == BeginRecord.sid)
     {
         rs.GetNext();
         picF = (PicFRecord)rs.GetNext();
         Record r = rs.GetNext();//EndRecord
         Debug.Assert(r.GetType() == typeof(EndRecord));
     }
 }
開發者ID:89sos98,項目名稱:npoi,代碼行數:25,代碼來源:GelFrameAggregate.cs

示例5: CrtMlFrtAggregate

 public CrtMlFrtAggregate(RecordStream rs, ChartRecordAggregate container)
     : base(RuleName_CRTMLFRT, container)
 {
     crtmlFrt = (CrtMlFrtRecord)rs.GetNext();
     if (rs.PeekNextChartSid() == CrtMlFrtContinueRecord.sid)
     {
         while (rs.PeekNextChartSid() == CrtMlFrtContinueRecord.sid)
         {
             continues.Add((CrtMlFrtContinueRecord)rs.GetNext());
         }
     }
 }
開發者ID:ctddjyds,項目名稱:npoi,代碼行數:12,代碼來源:CrtMlFrtAggregate.cs

示例6: ShapePropsAggregate

 public ShapePropsAggregate(RecordStream rs, ChartRecordAggregate container)
     : base(RuleName_SHAPEPROPS, container)
 {
     shapProps = (ShapePropsStreamRecord)rs.GetNext();
     if (rs.PeekNextChartSid() == CrtMlFrtContinueRecord.sid)
     {
         while (rs.PeekNextChartSid() == CrtMlFrtContinueRecord.sid)
         {
             continues.Add((ContinueFrt12Record)rs.GetNext());
         }
     }
 }
開發者ID:hanwangkun,項目名稱:npoi,代碼行數:12,代碼來源:ShapePropsAggregate.cs

示例7: SeriesDataAggregate

 public SeriesDataAggregate(RecordStream rs)
 {
     dimensions = (DimensionsRecord)rs.GetNext();
     while (rs.PeekNextChartSid() == SeriesIndexRecord.sid)
     {
         SeriesIndexRecord siIndex = (SeriesIndexRecord)rs.GetNext();
         int sid = rs.PeekNextChartSid();
         List<Record> dataList = new List<Record>();
         while (sid == NumberRecord.sid || sid == BoolErrRecord.sid || sid == BlankRecord.sid || sid == LabelRecord.sid)
         {
             dataList.Add(rs.GetNext());
         }
         dicData.Add(siIndex, dataList);
     }
 }
開發者ID:ctddjyds,項目名稱:npoi,代碼行數:15,代碼來源:SeriesDataAggregate.cs

示例8: TextPropsAggregate

        public TextPropsAggregate(RecordStream rs, ChartRecordAggregate container)
            : base(RuleName_TEXTPROPS, container)
        {
            if (rs.PeekNextChartSid() == TextPropsStreamRecord.sid)
                textPropsStream = (TextPropsStreamRecord)rs.GetNext();
            else
                richTextStream = (RichTextStreamRecord)rs.GetNext();

            if (rs.PeekNextChartSid() == ContinueFrt12Record.sid)
            {
                while (rs.PeekNextChartSid() == ContinueFrt12Record.sid)
                {
                    continues.Add((ContinueFrt12Record)rs.GetNext());
                }
            }
        }
開發者ID:xiepeixing,項目名稱:npoi,代碼行數:16,代碼來源:TextPropsAggregate.cs

示例9: SeriesAxisAggregate

        public SeriesAxisAggregate(RecordStream rs, ChartRecordAggregate container)
            : base("SERIESAXIS", container)
        {
            axis = (AxisRecord)rs.GetNext();
            rs.GetNext();

            if (rs.PeekNextChartSid() == CatSerRangeRecord.sid)
                catSerRange = (CatSerRangeRecord)rs.GetNext();

            axs = new AXSAggregate(rs, this);
            if (rs.PeekNextChartSid() == CrtMlFrtRecord.sid)
                crtmlfrt = new CrtMlFrtAggregate(rs, this);

            Record r = rs.GetNext();//EndRecord
            Debug.Assert(r.GetType() == typeof(EndRecord));
        }
開發者ID:89sos98,項目名稱:npoi,代碼行數:16,代碼來源:SeriesAxisAggregate.cs

示例10: SeriesFormatAggregate

        public SeriesFormatAggregate(RecordStream rs, ChartRecordAggregate container)
            : base(RuleName_SERIESFORMAT, container)
        {
            series = (SeriesRecord)rs.GetNext();
            rs.GetNext();
            BRAIRecord ai;
            SeriesTextRecord sText;
            while (rs.PeekNextChartSid() == BRAIRecord.sid)
            {
                sText = null;
                ai = (BRAIRecord)rs.GetNext();
                if (rs.PeekNextChartSid() == SeriesTextRecord.sid)
                    sText = (SeriesTextRecord)rs.GetNext();
                dic4AI.Add(ai, sText);
            }
            if (rs.PeekNextChartSid() == DataFormatRecord.sid)
            {
                while (rs.PeekNextChartSid() == DataFormatRecord.sid)
                    ssList.Add(new SSAggregate(rs, this));
            }
            if (rs.PeekNextChartSid() == SerToCrtRecord.sid)
            {
                serToCrt = (SerToCrtRecord)rs.GetNext();
            }
            else
            {
                if (rs.PeekNextChartSid() == SerParentRecord.sid)
                {
                    serParent = (SerParentRecord)rs.GetNext();
                    if (rs.PeekNextChartSid() == SerAuxTrendRecord.sid)
                    {
                        serAuxTrend = (SerAuxTrendRecord)rs.GetNext();
                    }
                    else
                    {
                        serAuxErrBar = (SerAuxErrBarRecord)rs.GetNext();
                    }
                }
            }

            if (rs.PeekNextChartSid() == LegendExceptionRecord.sid)
            {
                while (rs.PeekNextChartSid() == LegendExceptionRecord.sid)
                {
                    leList.Add(new LegendExceptionAggregate(rs, this));
                }
            }

            Record r = rs.GetNext();//EndRecord
            Debug.Assert(r.GetType() == typeof(EndRecord));
        }
開發者ID:89sos98,項目名稱:npoi,代碼行數:51,代碼來源:SeriesFormatAggregate.cs

示例11: ChartSheetAggregate

 public ChartSheetAggregate(RecordStream rs, ChartRecordAggregate container)
     : base(RuleName_CHARTSHEET, container)
 {
     _bofRec = (BOFRecord)rs.GetNext();
     List<RecordBase> temp = new List<RecordBase>();
     while (rs.PeekNextClass() != typeof(EOFRecord))
     {
         Type a = rs.PeekNextClass();
         if (PageSettingsBlock.IsComponentRecord(rs.PeekNextChartSid()))
         {
             if (_psBlock != null)
             {
                 if (rs.PeekNextChartSid() == HeaderFooterRecord.sid)
                 {
                     // test samples: 45538_classic_Footer.xls, 45538_classic_Header.xls
                     _psBlock.AddLateHeaderFooter((HeaderFooterRecord)rs.GetNext());
                     continue;
                 }
                 throw new InvalidDataException(
                         "Found more than one PageSettingsBlock in chart sub-stream");
             }
             _psBlock = new PageSettingsBlock(rs);
             temp.Add(_psBlock);
             continue;
         }
         if (rs.PeekNextChartSid() == ChartRecord.sid)
         {
             chartFormats = new ChartFormatsAggregate(rs, this);
             temp.Add(chartFormats);
             continue;
         }
         if (rs.PeekNextChartSid() == DimensionsRecord.sid)
         {
             seriesData = new SeriesDataAggregate(rs);
             temp.Add(seriesData);
             continue;
         }
         temp.Add(rs.GetNext());
     }
     _recs = temp;
     Record eof = rs.GetNext(); // no need to save EOF in field
     if (!(eof is EOFRecord))
     {
         throw new InvalidOperationException("Bad chart EOF");
     }
 }
開發者ID:xiepeixing,項目名稱:npoi,代碼行數:46,代碼來源:ChartSheetAggregate.cs

示例12: FrameAggregate

 public FrameAggregate(RecordStream rs, ChartRecordAggregate container)
     : base(RuleName_FRAME, container)
 {
     frame = (FrameRecord)rs.GetNext();
     rs.GetNext();//BeginRecord
     lineFormat = (LineFormatRecord)rs.GetNext();
     areaFormat = (AreaFormatRecord)rs.GetNext();
     if (rs.PeekNextChartSid() == GelFrameRecord.sid)
     {
         gelFrame = new GelFrameAggregate(rs, this);
     }
     
     if (rs.PeekNextChartSid() == ShapePropsStreamRecord.sid)
     {
         shapeProps = new ShapePropsAggregate(rs, this);
     }
     
     Record r = rs.GetNext();//EndRecord
     Debug.Assert(r.GetType() == typeof(EndRecord));
 }
開發者ID:89sos98,項目名稱:npoi,代碼行數:20,代碼來源:FrameAggregate.cs

示例13: IVAxisAggregate

        public IVAxisAggregate(RecordStream rs, ChartRecordAggregate container, AxisRecord axis)
            : base(RuleName_IVAXIS, container)
        {
            this.axis = axis;

            if (rs.PeekNextChartSid() == CatSerRangeRecord.sid)
                catSerRange = (CatSerRangeRecord)rs.GetNext();

            Debug.Assert(rs.PeekNextChartSid() == AxcExtRecord.sid);
            axcExt = (AxcExtRecord)rs.GetNext();

            if (rs.PeekNextChartSid() == CatLabRecord.sid)
                catLab = (CatLabRecord)rs.GetNext();

            axs = new AXSAggregate(rs, this);
            while (rs.PeekNextChartSid() == CrtMlFrtRecord.sid)
                crtmlfrtList.Add(new CrtMlFrtAggregate(rs, this));

            Record r = rs.GetNext();//EndRecord
            Debug.Assert(r.GetType() == typeof(EndRecord));
        }
開發者ID:ctddjyds,項目名稱:npoi,代碼行數:21,代碼來源:IVAxisAggregate.cs

示例14: DFTTextAggregate

        public DFTTextAggregate(RecordStream rs, ChartRecordAggregate container)
            : base(RuleName_DFTTEXT, container)
        {
            if (rs.PeekNextChartSid() == DataLabExtRecord.sid)
            {
                dataLabExt = (DataLabExtRecord)rs.GetNext();
                startObject = (ChartStartObjectRecord)rs.GetNext();
            }
            defaultText = (DefaultTextRecord)rs.GetNext();
            attachedLabel = new AttachedLabelAggregate(rs, this);

            if (startObject != null)
                endObject = (ChartEndObjectRecord)rs.GetNext();
        }
開發者ID:JnS-Software-LLC,項目名稱:npoi,代碼行數:14,代碼來源:DFTTextAggregate.cs

示例15: FontListAggregate

        public FontListAggregate(RecordStream rs, ChartRecordAggregate container)
            : base(RuleName_FONTLIST, container)
        {
            frtFontList = (FrtFontListRecord)rs.GetNext();
            startObject = (ChartStartObjectRecord)rs.GetNext();
            FontRecord f = null;
            FbiRecord fbi = null;
            while (rs.PeekNextChartSid() == FontRecord.sid)
            {
                f = (FontRecord)rs.GetNext();
                if (rs.PeekNextChartSid() == FbiRecord.sid)
                {
                    fbi = (FbiRecord)rs.GetNext();
                }
                else
                {
                    fbi = null;
                }
                dicFonts.Add(f, fbi);
            }

            endObject = (ChartEndObjectRecord)rs.GetNext();
        }
開發者ID:ctddjyds,項目名稱:npoi,代碼行數:23,代碼來源:FontListAggregate.cs


注:本文中的NPOI.HSSF.Model.RecordStream.PeekNextChartSid方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。