public AXSAggregate(RecordStream rs, ChartRecordAggregate container) : base(RuleName_AXS, container) { if (rs.PeekNextChartSid() == IFmtRecordRecord.sid) { ifmt = (IFmtRecordRecord)rs.GetNext(); } if (rs.PeekNextChartSid() == TickRecord.sid) { tick = (TickRecord)rs.GetNext(); } if (rs.PeekNextChartSid() == FontXRecord.sid) { fontx = (FontXRecord)rs.GetNext(); } if (rs.PeekNextChartSid() == AxisLineRecord.sid) { while (rs.PeekNextChartSid() == AxisLineRecord.sid) { axisLines.Add((AxisLineRecord)rs.GetNext()); lineFormats.Add((LineFormatRecord)rs.GetNext()); } } if (rs.PeekNextChartSid() == AreaFormatRecord.sid) { areaFormat = (AreaFormatRecord)rs.GetNext(); } if (rs.PeekNextChartSid() == GelFrameRecord.sid) { gelFrame = new GelFrameAggregate(rs, this); } if (rs.PeekNextChartSid() == ShapePropsStreamRecord.sid) { while (rs.PeekNextChartSid() == ShapePropsStreamRecord.sid) { shapes.Add(new ShapePropsAggregate(rs, this)); } } if (rs.PeekNextChartSid() == TextPropsStreamRecord.sid) { textProps = (TextPropsStreamRecord)rs.GetNext(); while (rs.PeekNextChartSid() == ContinueFrt12Record.sid) { continues.Add((ContinueFrt12Record)rs.GetNext()); } } }
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()); } } }