Exemplo n.º 1
0
        public static CT_UpDownBars Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_UpDownBars ctObj = new CT_UpDownBars();

            ctObj.extLst = new List <CT_Extension>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "gapWidth")
                {
                    ctObj.gapWidth = CT_GapAmount.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "upBars")
                {
                    ctObj.upBars = CT_UpDownBar.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "downBars")
                {
                    ctObj.downBars = CT_UpDownBar.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "extLst")
                {
                    ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Exemplo n.º 2
0
        public static CT_LineChart Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_LineChart ctObj = new CT_LineChart();

            ctObj.ser    = new List <CT_LineSer>();
            ctObj.axId   = new List <CT_UnsignedInt>();
            ctObj.extLst = new List <CT_Extension>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "grouping")
                {
                    ctObj.grouping = CT_Grouping.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "varyColors")
                {
                    ctObj.varyColors = CT_Boolean.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "dLbls")
                {
                    ctObj.dLbls = CT_DLbls.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "dropLines")
                {
                    ctObj.dropLines = CT_ChartLines.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "hiLowLines")
                {
                    ctObj.hiLowLines = CT_ChartLines.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "upDownBars")
                {
                    ctObj.upDownBars = CT_UpDownBars.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "marker")
                {
                    ctObj.marker = CT_Boolean.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "smooth")
                {
                    ctObj.smooth = CT_Boolean.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "ser")
                {
                    ctObj.ser.Add(CT_LineSer.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "axId")
                {
                    ctObj.axId.Add(CT_UnsignedInt.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "extLst")
                {
                    ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Exemplo n.º 3
0
 public static CT_UpDownBars Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_UpDownBars ctObj = new CT_UpDownBars();
     ctObj.extLst = new List<CT_Extension>();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "gapWidth")
             ctObj.gapWidth = CT_GapAmount.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "upBars")
             ctObj.upBars = CT_UpDownBar.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "downBars")
             ctObj.downBars = CT_UpDownBar.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "extLst")
             ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
     }
     return ctObj;
 }
Exemplo n.º 4
0
 public CT_StockChart()
 {
     this.extLstField = new List<CT_Extension>();
     this.axIdField = new List<CT_UnsignedInt>();
     this.upDownBarsField = new CT_UpDownBars();
     this.hiLowLinesField = new CT_ChartLines();
     this.dropLinesField = new CT_ChartLines();
     this.dLblsField = new CT_DLbls();
     this.serField = new List<CT_LineSer>();
 }
Exemplo n.º 5
0
 public CT_LineChart()
 {
     this.extLstField = new List<CT_Extension>();
     this.axIdField = new List<CT_UnsignedInt>();
     this.smoothField = new CT_Boolean();
     this.markerField = new CT_Boolean();
     this.upDownBarsField = new CT_UpDownBars();
     this.hiLowLinesField = new CT_ChartLines();
     this.dropLinesField = new CT_ChartLines();
     this.dLblsField = new CT_DLbls();
     this.serField = new List<CT_LineSer>();
     this.varyColorsField = new CT_Boolean();
     this.groupingField = new CT_Grouping();
 }