npoi
1208 строк · 33.1 Кб
1using System;
2using System.Collections.Generic;
3using System.IO;
4using System.Text;
5using System.Xml;
6using System.Xml.Serialization;
7
8
9namespace NPOI.OpenXmlFormats.Dml.Chart
10{
11
12[Serializable]
13
14[System.ComponentModel.DesignerCategoryAttribute("code")]
15[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/chart")]
16[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/chart", IsNullable = true)]
17public class CT_LineSer
18{
19
20private CT_UnsignedInt idxField;
21
22private CT_UnsignedInt orderField;
23
24private CT_SerTx txField;
25
26private CT_ShapeProperties spPrField;
27
28private CT_Marker markerField;
29
30private List<CT_DPt> dPtField;
31
32private CT_DLbls dLblsField;
33
34private List<CT_Trendline> trendlineField;
35
36private CT_ErrBars errBarsField;
37
38private CT_AxDataSource catField;
39
40private CT_NumDataSource valField;
41
42private CT_Boolean smoothField;
43
44private List<CT_Extension> extLstField;
45
46public CT_LineSer()
47{
48}
49
50public static CT_LineSer Parse(XmlNode node, XmlNamespaceManager namespaceManager)
51{
52if (node == null)
53return null;
54CT_LineSer ctObj = new CT_LineSer();
55ctObj.dPt = new List<CT_DPt>();
56ctObj.trendline = new List<CT_Trendline>();
57ctObj.extLst = new List<CT_Extension>();
58foreach (XmlNode childNode in node.ChildNodes)
59{
60if (childNode.LocalName == "idx")
61ctObj.idx = CT_UnsignedInt.Parse(childNode, namespaceManager);
62else if (childNode.LocalName == "order")
63ctObj.order = CT_UnsignedInt.Parse(childNode, namespaceManager);
64else if (childNode.LocalName == "tx")
65ctObj.tx = CT_SerTx.Parse(childNode, namespaceManager);
66else if (childNode.LocalName == "spPr")
67ctObj.spPr = CT_ShapeProperties.Parse(childNode, namespaceManager);
68else if (childNode.LocalName == "marker")
69ctObj.marker = CT_Marker.Parse(childNode, namespaceManager);
70else if (childNode.LocalName == "dLbls")
71ctObj.dLbls = CT_DLbls.Parse(childNode, namespaceManager);
72else if (childNode.LocalName == "errBars")
73ctObj.errBars = CT_ErrBars.Parse(childNode, namespaceManager);
74else if (childNode.LocalName == "cat")
75ctObj.cat = CT_AxDataSource.Parse(childNode, namespaceManager);
76else if (childNode.LocalName == "val")
77ctObj.val = CT_NumDataSource.Parse(childNode, namespaceManager);
78else if (childNode.LocalName == "smooth")
79ctObj.smooth = CT_Boolean.Parse(childNode, namespaceManager);
80else if (childNode.LocalName == "dPt")
81ctObj.dPt.Add(CT_DPt.Parse(childNode, namespaceManager));
82else if (childNode.LocalName == "trendline")
83ctObj.trendline.Add(CT_Trendline.Parse(childNode, namespaceManager));
84else if (childNode.LocalName == "extLst")
85ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
86}
87return ctObj;
88}
89
90
91
92internal void Write(StreamWriter sw, string nodeName)
93{
94sw.Write(string.Format("<c:{0}", nodeName));
95sw.Write(">");
96if (this.idx != null)
97this.idx.Write(sw, "idx");
98if (this.order != null)
99this.order.Write(sw, "order");
100if (this.tx != null)
101this.tx.Write(sw, "tx");
102if (this.spPr != null)
103this.spPr.Write(sw, "spPr");
104if (this.marker != null)
105this.marker.Write(sw, "marker");
106if (this.dLbls != null)
107this.dLbls.Write(sw, "dLbls");
108if (this.errBars != null)
109this.errBars.Write(sw, "errBars");
110if (this.cat != null)
111this.cat.Write(sw, "cat");
112if (this.val != null)
113this.val.Write(sw, "val");
114if (this.smooth != null)
115this.smooth.Write(sw, "smooth");
116if (this.dPt != null)
117{
118foreach (CT_DPt x in this.dPt)
119{
120x.Write(sw, "dPt");
121}
122}
123if (this.trendline != null)
124{
125foreach (CT_Trendline x in this.trendline)
126{
127x.Write(sw, "trendline");
128}
129}
130if (this.extLst != null)
131{
132foreach (CT_Extension x in this.extLst)
133{
134x.Write(sw, "extLst");
135}
136}
137sw.Write(string.Format("</c:{0}>", nodeName));
138}
139
140[XmlElement(Order = 0)]
141public CT_UnsignedInt idx
142{
143get
144{
145return this.idxField;
146}
147set
148{
149this.idxField = value;
150}
151}
152
153[XmlElement(Order = 1)]
154public CT_UnsignedInt order
155{
156get
157{
158return this.orderField;
159}
160set
161{
162this.orderField = value;
163}
164}
165
166[XmlElement(Order = 2)]
167public CT_SerTx tx
168{
169get
170{
171return this.txField;
172}
173set
174{
175this.txField = value;
176}
177}
178
179[XmlElement(Order = 3)]
180public CT_ShapeProperties spPr
181{
182get
183{
184return this.spPrField;
185}
186set
187{
188this.spPrField = value;
189}
190}
191
192[XmlElement(Order = 4)]
193public CT_Marker marker
194{
195get
196{
197return this.markerField;
198}
199set
200{
201this.markerField = value;
202}
203}
204
205[XmlElement("dPt", Order = 5)]
206public List<CT_DPt> dPt
207{
208get
209{
210return this.dPtField;
211}
212set
213{
214this.dPtField = value;
215}
216}
217
218[XmlElement(Order = 6)]
219public CT_DLbls dLbls
220{
221get
222{
223return this.dLblsField;
224}
225set
226{
227this.dLblsField = value;
228}
229}
230
231[XmlElement("trendline", Order = 7)]
232public List<CT_Trendline> trendline
233{
234get
235{
236return this.trendlineField;
237}
238set
239{
240this.trendlineField = value;
241}
242}
243
244[XmlElement(Order = 8)]
245public CT_ErrBars errBars
246{
247get
248{
249return this.errBarsField;
250}
251set
252{
253this.errBarsField = value;
254}
255}
256
257[XmlElement(Order = 9)]
258public CT_AxDataSource cat
259{
260get
261{
262return this.catField;
263}
264set
265{
266this.catField = value;
267}
268}
269
270[XmlElement(Order = 10)]
271public CT_NumDataSource val
272{
273get
274{
275return this.valField;
276}
277set
278{
279this.valField = value;
280}
281}
282
283[XmlElement(Order = 11)]
284public CT_Boolean smooth
285{
286get
287{
288return this.smoothField;
289}
290set
291{
292this.smoothField = value;
293}
294}
295
296[XmlElement(Order = 12)]
297public List<CT_Extension> extLst
298{
299get
300{
301return this.extLstField;
302}
303set
304{
305this.extLstField = value;
306}
307}
308
309public CT_UnsignedInt AddNewIdx()
310{
311this.idxField = new CT_UnsignedInt();
312return this.idxField;
313}
314
315public CT_UnsignedInt AddNewOrder()
316{
317this.orderField = new CT_UnsignedInt();
318return this.orderField;
319}
320
321public CT_Marker AddNewMarker()
322{
323this.markerField = new CT_Marker();
324return this.markerField;
325}
326
327public CT_AxDataSource AddNewCat()
328{
329this.catField = new CT_AxDataSource();
330return this.catField;
331}
332
333public CT_NumDataSource AddNewVal()
334{
335this.valField = new CT_NumDataSource();
336return this.valField;
337}
338}
339
340
341[Serializable]
342
343[System.ComponentModel.DesignerCategoryAttribute("code")]
344[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/chart")]
345[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/chart", IsNullable = true)]
346public class CT_Line3DChart
347{
348
349private CT_Grouping groupingField;
350
351private CT_Boolean varyColorsField;
352
353private List<CT_LineSer> serField;
354
355private CT_DLbls dLblsField;
356
357private CT_ChartLines dropLinesField;
358
359private CT_GapAmount gapDepthField;
360
361private List<CT_UnsignedInt> axIdField;
362
363private List<CT_Extension> extLstField;
364
365public CT_Line3DChart()
366{
367//this.extLstField = new List<CT_Extension>();
368//this.axIdField = new List<CT_UnsignedInt>();
369//this.gapDepthField = new CT_GapAmount();
370//this.dropLinesField = new CT_ChartLines();
371//this.dLblsField = new CT_DLbls();
372//this.serField = new List<CT_LineSer>();
373//this.varyColorsField = new CT_Boolean();
374//this.groupingField = new CT_Grouping();
375}
376
377public int GetSeriesCount()
378{
379return this.serField == null ? 0 : this.serField.Count;
380}
381
382[XmlElement(Order = 0)]
383public CT_Grouping grouping
384{
385get
386{
387return this.groupingField;
388}
389set
390{
391this.groupingField = value;
392}
393}
394
395[XmlElement(Order = 1)]
396public CT_Boolean varyColors
397{
398get
399{
400return this.varyColorsField;
401}
402set
403{
404this.varyColorsField = value;
405}
406}
407
408[XmlElement("ser", Order = 2)]
409public List<CT_LineSer> ser
410{
411get
412{
413return this.serField;
414}
415set
416{
417this.serField = value;
418}
419}
420
421[XmlElement(Order = 3)]
422public CT_DLbls dLbls
423{
424get
425{
426return this.dLblsField;
427}
428set
429{
430this.dLblsField = value;
431}
432}
433
434[XmlElement(Order = 4)]
435public CT_ChartLines dropLines
436{
437get
438{
439return this.dropLinesField;
440}
441set
442{
443this.dropLinesField = value;
444}
445}
446
447[XmlElement(Order = 5)]
448public CT_GapAmount gapDepth
449{
450get
451{
452return this.gapDepthField;
453}
454set
455{
456this.gapDepthField = value;
457}
458}
459
460[XmlElement("axId", Order = 6)]
461public List<CT_UnsignedInt> axId
462{
463get
464{
465return this.axIdField;
466}
467set
468{
469this.axIdField = value;
470}
471}
472
473[XmlElement(Order = 7)]
474public List<CT_Extension> extLst
475{
476get
477{
478return this.extLstField;
479}
480set
481{
482this.extLstField = value;
483}
484}
485public static CT_Line3DChart Parse(XmlNode node, XmlNamespaceManager namespaceManager)
486{
487if (node == null)
488return null;
489CT_Line3DChart ctObj = new CT_Line3DChart();
490ctObj.ser = new List<CT_LineSer>();
491ctObj.axId = new List<CT_UnsignedInt>();
492ctObj.extLst = new List<CT_Extension>();
493foreach (XmlNode childNode in node.ChildNodes)
494{
495if (childNode.LocalName == "grouping")
496ctObj.grouping = CT_Grouping.Parse(childNode, namespaceManager);
497else if (childNode.LocalName == "varyColors")
498ctObj.varyColors = CT_Boolean.Parse(childNode, namespaceManager);
499else if (childNode.LocalName == "dLbls")
500ctObj.dLbls = CT_DLbls.Parse(childNode, namespaceManager);
501else if (childNode.LocalName == "dropLines")
502ctObj.dropLines = CT_ChartLines.Parse(childNode, namespaceManager);
503else if (childNode.LocalName == "gapDepth")
504ctObj.gapDepth = CT_GapAmount.Parse(childNode, namespaceManager);
505else if (childNode.LocalName == "ser")
506ctObj.ser.Add(CT_LineSer.Parse(childNode, namespaceManager));
507else if (childNode.LocalName == "axId")
508ctObj.axId.Add(CT_UnsignedInt.Parse(childNode, namespaceManager));
509else if (childNode.LocalName == "extLst")
510ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
511}
512return ctObj;
513}
514
515
516
517internal void Write(StreamWriter sw, string nodeName)
518{
519sw.Write(string.Format("<c:{0}", nodeName));
520sw.Write(">");
521if (this.grouping != null)
522this.grouping.Write(sw, "grouping");
523if (this.varyColors != null)
524this.varyColors.Write(sw, "varyColors");
525if (this.dLbls != null)
526this.dLbls.Write(sw, "dLbls");
527if (this.dropLines != null)
528this.dropLines.Write(sw, "dropLines");
529if (this.gapDepth != null)
530this.gapDepth.Write(sw, "gapDepth");
531if (this.ser != null)
532{
533foreach (CT_LineSer x in this.ser)
534{
535x.Write(sw, "ser");
536}
537}
538if (this.axId != null)
539{
540foreach (CT_UnsignedInt x in this.axId)
541{
542x.Write(sw, "axId");
543}
544}
545if (this.extLst != null)
546{
547foreach (CT_Extension x in this.extLst)
548{
549x.Write(sw, "extLst");
550}
551}
552sw.Write(string.Format("</c:{0}>", nodeName));
553}
554
555}
556
557
558
559
560[Serializable]
561
562[System.ComponentModel.DesignerCategoryAttribute("code")]
563[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/chart")]
564[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/chart", IsNullable = true)]
565public class CT_UpDownBars
566{
567
568private CT_GapAmount gapWidthField;
569
570private CT_UpDownBar upBarsField;
571
572private CT_UpDownBar downBarsField;
573
574private List<CT_Extension> extLstField;
575
576public CT_UpDownBars()
577{
578}
579public static CT_UpDownBars Parse(XmlNode node, XmlNamespaceManager namespaceManager)
580{
581if (node == null)
582return null;
583CT_UpDownBars ctObj = new CT_UpDownBars();
584ctObj.extLst = new List<CT_Extension>();
585foreach (XmlNode childNode in node.ChildNodes)
586{
587if (childNode.LocalName == "gapWidth")
588ctObj.gapWidth = CT_GapAmount.Parse(childNode, namespaceManager);
589else if (childNode.LocalName == "upBars")
590ctObj.upBars = CT_UpDownBar.Parse(childNode, namespaceManager);
591else if (childNode.LocalName == "downBars")
592ctObj.downBars = CT_UpDownBar.Parse(childNode, namespaceManager);
593else if (childNode.LocalName == "extLst")
594ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
595}
596return ctObj;
597}
598
599
600
601internal void Write(StreamWriter sw, string nodeName)
602{
603sw.Write(string.Format("<c:{0}", nodeName));
604sw.Write(">");
605if (this.gapWidth != null)
606this.gapWidth.Write(sw, "gapWidth");
607if (this.upBars != null)
608this.upBars.Write(sw, "upBars");
609if (this.downBars != null)
610this.downBars.Write(sw, "downBars");
611if (this.extLst != null)
612{
613foreach (CT_Extension x in this.extLst)
614{
615x.Write(sw, "extLst");
616}
617}
618sw.Write(string.Format("</c:{0}>", nodeName));
619}
620
621
622[XmlElement(Order = 0)]
623public CT_GapAmount gapWidth
624{
625get
626{
627return this.gapWidthField;
628}
629set
630{
631this.gapWidthField = value;
632}
633}
634
635[XmlElement(Order = 1)]
636public CT_UpDownBar upBars
637{
638get
639{
640return this.upBarsField;
641}
642set
643{
644this.upBarsField = value;
645}
646}
647
648[XmlElement(Order = 2)]
649public CT_UpDownBar downBars
650{
651get
652{
653return this.downBarsField;
654}
655set
656{
657this.downBarsField = value;
658}
659}
660
661[XmlElement(Order = 3)]
662public List<CT_Extension> extLst
663{
664get
665{
666return this.extLstField;
667}
668set
669{
670this.extLstField = value;
671}
672}
673}
674
675
676[Serializable]
677
678[System.ComponentModel.DesignerCategoryAttribute("code")]
679[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/chart")]
680[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/chart", IsNullable = true)]
681public class CT_UpDownBar
682{
683
684private CT_ShapeProperties spPrField;
685public static CT_UpDownBar Parse(XmlNode node, XmlNamespaceManager namespaceManager)
686{
687if (node == null)
688return null;
689CT_UpDownBar ctObj = new CT_UpDownBar();
690foreach (XmlNode childNode in node.ChildNodes)
691{
692if (childNode.LocalName == "spPr")
693ctObj.spPr = CT_ShapeProperties.Parse(childNode, namespaceManager);
694}
695return ctObj;
696}
697
698
699
700internal void Write(StreamWriter sw, string nodeName)
701{
702sw.Write(string.Format("<c:{0}", nodeName));
703sw.Write(">");
704if (this.spPr != null)
705this.spPr.Write(sw, "spPr");
706sw.Write(string.Format("</c:{0}>", nodeName));
707}
708
709[XmlElement(Order = 0)]
710public CT_ShapeProperties spPr
711{
712get
713{
714return this.spPrField;
715}
716set
717{
718this.spPrField = value;
719}
720}
721}
722
723
724[Serializable]
725
726[System.ComponentModel.DesignerCategoryAttribute("code")]
727[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/chart")]
728[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/chart", IsNullable = true)]
729public class CT_StockChart
730{
731
732private List<CT_LineSer> serField;
733
734private CT_DLbls dLblsField;
735
736private CT_ChartLines dropLinesField;
737
738private CT_ChartLines hiLowLinesField;
739
740private CT_UpDownBars upDownBarsField;
741
742private List<CT_UnsignedInt> axIdField;
743
744private List<CT_Extension> extLstField;
745
746public CT_StockChart()
747{
748}
749public static CT_StockChart Parse(XmlNode node, XmlNamespaceManager namespaceManager)
750{
751if (node == null)
752return null;
753CT_StockChart ctObj = new CT_StockChart();
754ctObj.ser = new List<CT_LineSer>();
755ctObj.axId = new List<CT_UnsignedInt>();
756ctObj.extLst = new List<CT_Extension>();
757foreach (XmlNode childNode in node.ChildNodes)
758{
759if (childNode.LocalName == "dLbls")
760ctObj.dLbls = CT_DLbls.Parse(childNode, namespaceManager);
761else if (childNode.LocalName == "dropLines")
762ctObj.dropLines = CT_ChartLines.Parse(childNode, namespaceManager);
763else if (childNode.LocalName == "hiLowLines")
764ctObj.hiLowLines = CT_ChartLines.Parse(childNode, namespaceManager);
765else if (childNode.LocalName == "upDownBars")
766ctObj.upDownBars = CT_UpDownBars.Parse(childNode, namespaceManager);
767else if (childNode.LocalName == "ser")
768ctObj.ser.Add(CT_LineSer.Parse(childNode, namespaceManager));
769else if (childNode.LocalName == "axId")
770ctObj.axId.Add(CT_UnsignedInt.Parse(childNode, namespaceManager));
771else if (childNode.LocalName == "extLst")
772ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
773}
774return ctObj;
775}
776
777
778
779internal void Write(StreamWriter sw, string nodeName)
780{
781sw.Write(string.Format("<c:{0}", nodeName));
782sw.Write(">");
783if (this.dLbls != null)
784this.dLbls.Write(sw, "dLbls");
785if (this.dropLines != null)
786this.dropLines.Write(sw, "dropLines");
787if (this.hiLowLines != null)
788this.hiLowLines.Write(sw, "hiLowLines");
789if (this.upDownBars != null)
790this.upDownBars.Write(sw, "upDownBars");
791if (this.ser != null)
792{
793foreach (CT_LineSer x in this.ser)
794{
795x.Write(sw, "ser");
796}
797}
798if (this.axId != null)
799{
800foreach (CT_UnsignedInt x in this.axId)
801{
802x.Write(sw, "axId");
803}
804}
805if (this.extLst != null)
806{
807foreach (CT_Extension x in this.extLst)
808{
809x.Write(sw, "extLst");
810}
811}
812sw.Write(string.Format("</c:{0}>", nodeName));
813}
814
815public int GetSeriesCount()
816{
817return this.serField == null ? 0 : this.serField.Count;
818}
819
820[XmlElement("ser", Order = 0)]
821public List<CT_LineSer> ser
822{
823get
824{
825return this.serField;
826}
827set
828{
829this.serField = value;
830}
831}
832
833[XmlElement(Order = 1)]
834public CT_DLbls dLbls
835{
836get
837{
838return this.dLblsField;
839}
840set
841{
842this.dLblsField = value;
843}
844}
845
846[XmlElement(Order = 2)]
847public CT_ChartLines dropLines
848{
849get
850{
851return this.dropLinesField;
852}
853set
854{
855this.dropLinesField = value;
856}
857}
858
859[XmlElement(Order = 3)]
860public CT_ChartLines hiLowLines
861{
862get
863{
864return this.hiLowLinesField;
865}
866set
867{
868this.hiLowLinesField = value;
869}
870}
871
872[XmlElement(Order = 4)]
873public CT_UpDownBars upDownBars
874{
875get
876{
877return this.upDownBarsField;
878}
879set
880{
881this.upDownBarsField = value;
882}
883}
884
885[XmlElement("axId", Order = 5)]
886public List<CT_UnsignedInt> axId
887{
888get
889{
890return this.axIdField;
891}
892set
893{
894this.axIdField = value;
895}
896}
897
898[XmlElement(Order = 6)]
899public List<CT_Extension> extLst
900{
901get
902{
903return this.extLstField;
904}
905set
906{
907this.extLstField = value;
908}
909}
910}
911
912[Serializable]
913
914[System.ComponentModel.DesignerCategoryAttribute("code")]
915[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/chart")]
916[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/chart", IsNullable = true)]
917public class CT_LineChart
918{
919
920private CT_Grouping groupingField;
921
922private CT_Boolean varyColorsField;
923
924private List<CT_LineSer> serField;
925
926private CT_DLbls dLblsField;
927
928private CT_ChartLines dropLinesField;
929
930private CT_ChartLines hiLowLinesField;
931
932private CT_UpDownBars upDownBarsField;
933
934private CT_Boolean markerField;
935
936private CT_Boolean smoothField;
937
938private List<CT_UnsignedInt> axIdField;
939
940private List<CT_Extension> extLstField;
941
942public CT_LineChart()
943{
944}
945public static CT_LineChart Parse(XmlNode node, XmlNamespaceManager namespaceManager)
946{
947if (node == null)
948return null;
949CT_LineChart ctObj = new CT_LineChart();
950ctObj.ser = new List<CT_LineSer>();
951ctObj.axId = new List<CT_UnsignedInt>();
952ctObj.extLst = new List<CT_Extension>();
953foreach (XmlNode childNode in node.ChildNodes)
954{
955if (childNode.LocalName == "grouping")
956ctObj.grouping = CT_Grouping.Parse(childNode, namespaceManager);
957else if (childNode.LocalName == "varyColors")
958ctObj.varyColors = CT_Boolean.Parse(childNode, namespaceManager);
959else if (childNode.LocalName == "dLbls")
960ctObj.dLbls = CT_DLbls.Parse(childNode, namespaceManager);
961else if (childNode.LocalName == "dropLines")
962ctObj.dropLines = CT_ChartLines.Parse(childNode, namespaceManager);
963else if (childNode.LocalName == "hiLowLines")
964ctObj.hiLowLines = CT_ChartLines.Parse(childNode, namespaceManager);
965else if (childNode.LocalName == "upDownBars")
966ctObj.upDownBars = CT_UpDownBars.Parse(childNode, namespaceManager);
967else if (childNode.LocalName == "marker")
968ctObj.marker = CT_Boolean.Parse(childNode, namespaceManager);
969else if (childNode.LocalName == "smooth")
970ctObj.smooth = CT_Boolean.Parse(childNode, namespaceManager);
971else if (childNode.LocalName == "ser")
972ctObj.ser.Add(CT_LineSer.Parse(childNode, namespaceManager));
973else if (childNode.LocalName == "axId")
974ctObj.axId.Add(CT_UnsignedInt.Parse(childNode, namespaceManager));
975else if (childNode.LocalName == "extLst")
976ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
977}
978return ctObj;
979}
980
981
982
983internal void Write(StreamWriter sw, string nodeName)
984{
985sw.Write(string.Format("<c:{0}", nodeName));
986sw.Write(">");
987if (this.grouping != null)
988this.grouping.Write(sw, "grouping");
989if (this.varyColors != null)
990this.varyColors.Write(sw, "varyColors");
991if (this.ser != null)
992{
993foreach (CT_LineSer x in this.ser)
994{
995x.Write(sw, "ser");
996}
997}
998if (this.dLbls != null)
999this.dLbls.Write(sw, "dLbls");
1000if (this.dropLines != null)
1001this.dropLines.Write(sw, "dropLines");
1002if (this.hiLowLines != null)
1003this.hiLowLines.Write(sw, "hiLowLines");
1004if (this.upDownBars != null)
1005this.upDownBars.Write(sw, "upDownBars");
1006if (this.marker != null)
1007this.marker.Write(sw, "marker");
1008if (this.smooth != null)
1009this.smooth.Write(sw, "smooth");
1010
1011if (this.axId != null)
1012{
1013foreach (CT_UnsignedInt x in this.axId)
1014{
1015x.Write(sw, "axId");
1016}
1017}
1018if (this.extLst != null)
1019{
1020foreach (CT_Extension x in this.extLst)
1021{
1022x.Write(sw, "extLst");
1023}
1024}
1025sw.Write(string.Format("</c:{0}>", nodeName));
1026}
1027
1028public int GetSeriesCount()
1029{
1030return this.serField == null ? 0 : this.serField.Count;
1031}
1032
1033[XmlElement(Order = 0)]
1034public CT_Grouping grouping
1035{
1036get
1037{
1038return this.groupingField;
1039}
1040set
1041{
1042this.groupingField = value;
1043}
1044}
1045
1046[XmlElement(Order = 1)]
1047public CT_Boolean varyColors
1048{
1049get
1050{
1051return this.varyColorsField;
1052}
1053set
1054{
1055this.varyColorsField = value;
1056}
1057}
1058
1059[XmlElement("ser", Order = 2)]
1060public List<CT_LineSer> ser
1061{
1062get
1063{
1064return this.serField;
1065}
1066set
1067{
1068this.serField = value;
1069}
1070}
1071
1072[XmlElement(Order = 3)]
1073public CT_DLbls dLbls
1074{
1075get
1076{
1077return this.dLblsField;
1078}
1079set
1080{
1081this.dLblsField = value;
1082}
1083}
1084
1085[XmlElement(Order = 4)]
1086public CT_ChartLines dropLines
1087{
1088get
1089{
1090return this.dropLinesField;
1091}
1092set
1093{
1094this.dropLinesField = value;
1095}
1096}
1097
1098[XmlElement(Order = 5)]
1099public CT_ChartLines hiLowLines
1100{
1101get
1102{
1103return this.hiLowLinesField;
1104}
1105set
1106{
1107this.hiLowLinesField = value;
1108}
1109}
1110
1111[XmlElement(Order = 6)]
1112public CT_UpDownBars upDownBars
1113{
1114get
1115{
1116return this.upDownBarsField;
1117}
1118set
1119{
1120this.upDownBarsField = value;
1121}
1122}
1123
1124[XmlElement(Order = 7)]
1125public CT_Boolean marker
1126{
1127get
1128{
1129return this.markerField;
1130}
1131set
1132{
1133this.markerField = value;
1134}
1135}
1136
1137[XmlElement(Order = 8)]
1138public CT_Boolean smooth
1139{
1140get
1141{
1142return this.smoothField;
1143}
1144set
1145{
1146this.smoothField = value;
1147}
1148}
1149
1150[XmlElement("axId", Order = 9)]
1151public List<CT_UnsignedInt> axId
1152{
1153get
1154{
1155return this.axIdField;
1156}
1157set
1158{
1159this.axIdField = value;
1160}
1161}
1162
1163[XmlElement(Order = 10)]
1164public List<CT_Extension> extLst
1165{
1166get
1167{
1168return this.extLstField;
1169}
1170set
1171{
1172this.extLstField = value;
1173}
1174}
1175public CT_Grouping AddNewGrouping()
1176{
1177this.groupingField = new CT_Grouping();
1178return this.groupingField;
1179}
1180public CT_LineSer AddNewSer()
1181{
1182CT_LineSer newSer = new CT_LineSer();
1183if (this.serField == null)
1184{
1185this.serField = new List<CT_LineSer>();
1186}
1187this.serField.Add(newSer);
1188return newSer;
1189}
1190
1191public CT_Boolean AddNewVaryColors()
1192{
1193this.varyColorsField = new CT_Boolean();
1194return this.varyColorsField;
1195}
1196
1197public CT_UnsignedInt AddNewAxId()
1198{
1199CT_UnsignedInt si = new CT_UnsignedInt();
1200if (this.axIdField == null)
1201this.axIdField = new List<CT_UnsignedInt>();
1202axIdField.Add(si);
1203return si;
1204}
1205}
1206
1207
1208}
1209