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

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

            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "spPr")
                {
                    ctObj.spPr = CT_ShapeProperties.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }