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); }
public static CT_BubbleScale Parse(XElement node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_BubbleScale ctObj = new CT_BubbleScale(); if (node.Attribute("val") != null) { ctObj.val = XmlHelper.ReadUInt(node.Attribute("val")); } return(ctObj); }