Ejemplo n.º 1
0
        public static CT_Surface Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_Surface ctObj = new CT_Surface();

            ctObj.extLst = new List <CT_Extension>();
            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "thickness")
                {
                    ctObj.thickness = CT_UnsignedInt.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "spPr")
                {
                    ctObj.spPr = CT_ShapeProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "pictureOptions")
                {
                    ctObj.pictureOptions = CT_PictureOptions.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "extLst")
                {
                    ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Ejemplo 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);
        }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
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);
        }
Ejemplo n.º 5
0
        public static CT_RadarSer Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_RadarSer ctObj = new CT_RadarSer();

            ctObj.dPt    = new List <CT_DPt>();
            ctObj.extLst = new List <CT_Extension>();
            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "idx")
                {
                    ctObj.idx = CT_UnsignedInt.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "order")
                {
                    ctObj.order = CT_UnsignedInt.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "tx")
                {
                    ctObj.tx = CT_SerTx.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "spPr")
                {
                    ctObj.spPr = CT_ShapeProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "marker")
                {
                    ctObj.marker = CT_Marker.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "dLbls")
                {
                    ctObj.dLbls = CT_DLbls.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "cat")
                {
                    ctObj.cat = CT_AxDataSource.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "val")
                {
                    ctObj.val = CT_NumDataSource.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "dPt")
                {
                    ctObj.dPt.Add(CT_DPt.Parse(childNode, namespaceManager));
                }
                else if (childNode.Name.LocalName == "extLst")
                {
                    ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Ejemplo n.º 6
0
        public static CT_BubbleChart Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_BubbleChart ctObj = new CT_BubbleChart();

            ctObj.ser    = new List <CT_BubbleSer>();
            ctObj.axId   = new List <CT_UnsignedInt>();
            ctObj.extLst = new List <CT_Extension>();
            foreach (XElement childNode in node.ChildElements())
            {
                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 == "bubble3D")
                {
                    ctObj.bubble3D = CT_Boolean.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "bubbleScale")
                {
                    ctObj.bubbleScale = CT_BubbleScale.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "showNegBubbles")
                {
                    ctObj.showNegBubbles = CT_Boolean.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "sizeRepresents")
                {
                    ctObj.sizeRepresents = CT_SizeRepresents.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "ser")
                {
                    ctObj.ser.Add(CT_BubbleSer.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);
        }
Ejemplo n.º 7
0
        public static CT_StockChart Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_StockChart ctObj = new CT_StockChart();

            ctObj.ser    = new List <CT_LineSer>();
            ctObj.axId   = new List <CT_UnsignedInt>();
            ctObj.extLst = new List <CT_Extension>();
            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "dLbls")
                {
                    ctObj.dLbls = CT_DLbls.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "dropLines")
                {
                    ctObj.dropLines = CT_ChartLines.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "hiLowLines")
                {
                    ctObj.hiLowLines = CT_ChartLines.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "upDownBars")
                {
                    ctObj.upDownBars = CT_UpDownBars.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "ser")
                {
                    ctObj.ser.Add(CT_LineSer.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);
        }
Ejemplo n.º 8
0
        public static CT_SurfaceSer Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_SurfaceSer ctObj = new CT_SurfaceSer();

            ctObj.extLst = new List <CT_Extension>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "idx")
                {
                    ctObj.idx = CT_UnsignedInt.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "order")
                {
                    ctObj.order = CT_UnsignedInt.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "tx")
                {
                    ctObj.tx = CT_SerTx.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "spPr")
                {
                    ctObj.spPr = CT_ShapeProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "cat")
                {
                    ctObj.cat = CT_AxDataSource.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "val")
                {
                    ctObj.val = CT_NumDataSource.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "extLst")
                {
                    ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Ejemplo n.º 9
0
        public static CT_ScatterChart Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_ScatterChart ctObj = new CT_ScatterChart();

            ctObj.ser    = new List <CT_ScatterSer>();
            ctObj.axId   = new List <CT_UnsignedInt>();
            ctObj.extLst = new List <CT_Extension>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "scatterStyle")
                {
                    ctObj.scatterStyle = CT_ScatterStyle.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 == "ser")
                {
                    ctObj.ser.Add(CT_ScatterSer.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);
        }
Ejemplo n.º 10
0
        public static CT_Surface3DChart Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_Surface3DChart ctObj = new CT_Surface3DChart();

            ctObj.ser      = new List <CT_SurfaceSer>();
            ctObj.bandFmts = new List <CT_BandFmt>();
            ctObj.axId     = new List <CT_UnsignedInt>();
            ctObj.extLst   = new List <CT_Extension>();
            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "wireframe")
                {
                    ctObj.wireframe = CT_Boolean.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "ser")
                {
                    ctObj.ser.Add(CT_SurfaceSer.Parse(childNode, namespaceManager));
                }
                else if (childNode.Name.LocalName == "bandFmts")
                {
                    ctObj.bandFmts.Add(CT_BandFmt.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);
        }
Ejemplo n.º 11
0
        public static CT_BubbleSer Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_BubbleSer ctObj = new CT_BubbleSer();

            ctObj.dPt       = new List <CT_DPt>();
            ctObj.trendline = new List <CT_Trendline>();
            ctObj.errBars   = new List <CT_ErrBars>();
            ctObj.extLst    = new List <CT_Extension>();
            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "idx")
                {
                    ctObj.idx = CT_UnsignedInt.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "order")
                {
                    ctObj.order = CT_UnsignedInt.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "tx")
                {
                    ctObj.tx = CT_SerTx.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "spPr")
                {
                    ctObj.spPr = CT_ShapeProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "invertIfNegative")
                {
                    ctObj.invertIfNegative = CT_Boolean.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "dLbls")
                {
                    ctObj.dLbls = CT_DLbls.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "xVal")
                {
                    ctObj.xVal = CT_AxDataSource.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "yVal")
                {
                    ctObj.yVal = CT_NumDataSource.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "bubbleSize")
                {
                    ctObj.bubbleSize = CT_NumDataSource.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "bubble3D")
                {
                    ctObj.bubble3D = CT_Boolean.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "dPt")
                {
                    ctObj.dPt.Add(CT_DPt.Parse(childNode, namespaceManager));
                }
                else if (childNode.Name.LocalName == "trendline")
                {
                    ctObj.trendline.Add(CT_Trendline.Parse(childNode, namespaceManager));
                }
                else if (childNode.Name.LocalName == "errBars")
                {
                    ctObj.errBars.Add(CT_ErrBars.Parse(childNode, namespaceManager));
                }
                else if (childNode.Name.LocalName == "extLst")
                {
                    ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Ejemplo n.º 12
0
        public static CT_ScatterSer Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_ScatterSer ctObj = new CT_ScatterSer();

            ctObj.dPt       = new List <CT_DPt>();
            ctObj.trendline = new List <CT_Trendline>();
            ctObj.errBars   = new List <CT_ErrBars>();
            ctObj.extLst    = new List <CT_Extension>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "idx")
                {
                    ctObj.idx = CT_UnsignedInt.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "order")
                {
                    ctObj.order = CT_UnsignedInt.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "tx")
                {
                    ctObj.tx = CT_SerTx.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "spPr")
                {
                    ctObj.spPr = CT_ShapeProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "marker")
                {
                    ctObj.marker = CT_Marker.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "dLbls")
                {
                    ctObj.dLbls = CT_DLbls.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "xVal")
                {
                    ctObj.xVal = CT_AxDataSource.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "yVal")
                {
                    ctObj.yVal = CT_NumDataSource.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "smooth")
                {
                    ctObj.smooth = CT_Boolean.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "dPt")
                {
                    ctObj.dPt.Add(CT_DPt.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "trendline")
                {
                    ctObj.trendline.Add(CT_Trendline.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "errBars")
                {
                    ctObj.errBars.Add(CT_ErrBars.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "extLst")
                {
                    ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Ejemplo n.º 13
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);
        }
Ejemplo n.º 14
0
        public static CT_BarSer Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_BarSer ctObj = new CT_BarSer();

            ctObj.dPt       = new List <CT_DPt>();
            ctObj.trendline = new List <CT_Trendline>();
            ctObj.extLst    = new List <CT_Extension>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "idx")
                {
                    ctObj.idx = CT_UnsignedInt.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "order")
                {
                    ctObj.order = CT_UnsignedInt.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "tx")
                {
                    ctObj.tx = CT_SerTx.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "spPr")
                {
                    ctObj.spPr = CT_ShapeProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "invertIfNegative")
                {
                    ctObj.invertIfNegative = CT_Boolean.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "pictureOptions")
                {
                    ctObj.pictureOptions = CT_PictureOptions.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "dLbls")
                {
                    ctObj.dLbls = CT_DLbls.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "errBars")
                {
                    ctObj.errBars = CT_ErrBars.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "cat")
                {
                    ctObj.cat = CT_AxDataSource.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "val")
                {
                    ctObj.val = CT_NumDataSource.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "shape")
                {
                    ctObj.shape = CT_Shape.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "dPt")
                {
                    ctObj.dPt.Add(CT_DPt.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "trendline")
                {
                    ctObj.trendline.Add(CT_Trendline.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "extLst")
                {
                    ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }