Esempio 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);
        }
Esempio n. 2
0
        public static CT_BarChart Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_BarChart ctObj = new CT_BarChart();

            ctObj.ser      = new List <CT_BarSer>();
            ctObj.serLines = new List <CT_ChartLines>();
            ctObj.axId     = new List <CT_UnsignedInt>();
            ctObj.extLst   = new List <CT_Extension>();
            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "barDir")
                {
                    ctObj.barDir = CT_BarDir.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "grouping")
                {
                    ctObj.grouping = CT_BarGrouping.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "varyColors")
                {
                    ctObj.varyColors = CT_Boolean.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "dLbls")
                {
                    ctObj.dLbls = CT_DLbls.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "gapWidth")
                {
                    ctObj.gapWidth = CT_GapAmount.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "overlap")
                {
                    ctObj.overlap = CT_Overlap.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "ser")
                {
                    ctObj.ser.Add(CT_BarSer.Parse(childNode, namespaceManager));
                }
                else if (childNode.Name.LocalName == "serLines")
                {
                    ctObj.serLines.Add(CT_ChartLines.Parse(childNode, namespaceManager));
                }
                else if (childNode.Name.LocalName == "axId")
                {
                    ctObj.axId.Add(CT_UnsignedInt.Parse(childNode, namespaceManager));
                }
                else if (childNode.Name.LocalName == "extLst")
                {
                    ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Esempio n. 3
0
        public static CT_Bar3DChart Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_Bar3DChart ctObj = new CT_Bar3DChart();

            ctObj.ser    = new List <CT_BarSer>();
            ctObj.axId   = new List <CT_UnsignedInt>();
            ctObj.extLst = new List <CT_Extension>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "barDir")
                {
                    ctObj.barDir = CT_BarDir.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "grouping")
                {
                    ctObj.grouping = CT_BarGrouping.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 == "gapWidth")
                {
                    ctObj.gapWidth = CT_GapAmount.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "gapDepth")
                {
                    ctObj.gapDepth = CT_GapAmount.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "shape")
                {
                    ctObj.shape = CT_Shape.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "ser")
                {
                    ctObj.ser.Add(CT_BarSer.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);
        }
Esempio n. 4
0
 public CT_Bar3DChart()
 {
     this.extLstField     = new List <CT_Extension>();
     this.axIdField       = new List <CT_UnsignedInt>();
     this.shapeField      = new CT_Shape();
     this.gapDepthField   = new CT_GapAmount();
     this.gapWidthField   = new CT_GapAmount();
     this.dLblsField      = new CT_DLbls();
     this.serField        = new List <CT_BarSer>();
     this.varyColorsField = new CT_Boolean();
     this.groupingField   = new CT_BarGrouping();
     this.barDirField     = new CT_BarDir();
 }
Esempio n. 5
0
        public static CT_OfPieChart Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_OfPieChart ctObj = new CT_OfPieChart();

            ctObj.ser       = new List <CT_PieSer>();
            ctObj.custSplit = new List <CT_UnsignedInt>();
            ctObj.serLines  = new List <CT_ChartLines>();
            ctObj.extLst    = new List <CT_Extension>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "ofPieType")
                {
                    ctObj.ofPieType = CT_OfPieType.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 == "gapWidth")
                {
                    ctObj.gapWidth = CT_GapAmount.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "splitType")
                {
                    ctObj.splitType = CT_SplitType.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "splitPos")
                {
                    ctObj.splitPos = CT_Double.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "secondPieSize")
                {
                    ctObj.secondPieSize = CT_SecondPieSize.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "ser")
                {
                    ctObj.ser.Add(CT_PieSer.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "custSplit")
                {
                    ctObj.custSplit.Add(CT_UnsignedInt.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "serLines")
                {
                    ctObj.serLines.Add(CT_ChartLines.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "extLst")
                {
                    ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }