当前位置: 首页>>代码示例>>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;未经允许,请勿转载。