예제 #1
0
        public static CT_BubbleChart Parse(XmlNode 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 (XmlNode childNode in node.ChildNodes)
            {
                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 == "bubble3D")
                {
                    ctObj.bubble3D = CT_Boolean.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "bubbleScale")
                {
                    ctObj.bubbleScale = CT_BubbleScale.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "showNegBubbles")
                {
                    ctObj.showNegBubbles = CT_Boolean.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "sizeRepresents")
                {
                    ctObj.sizeRepresents = CT_SizeRepresents.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "ser")
                {
                    ctObj.ser.Add(CT_BubbleSer.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);
        }
예제 #2
0
        public static CT_BubbleScale Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_BubbleScale ctObj = new CT_BubbleScale();

            if (node.Attributes["val"] != null)
            {
                ctObj.val = XmlHelper.ReadUInt(node.Attributes["val"]);
            }
            return(ctObj);
        }
예제 #3
0
파일: BubbleChart.cs 프로젝트: 89sos98/npoi
 public static CT_BubbleScale Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_BubbleScale ctObj = new CT_BubbleScale();
     if (node.Attributes["val"] != null)
         ctObj.val = XmlHelper.ReadUInt(node.Attributes["val"]);
     return ctObj;
 }
예제 #4
0
파일: Chart.cs 프로젝트: xiepeixing/npoi
 public CT_BubbleChart()
 {
     this.extLstField = new List<CT_Extension>();
     this.axIdField = new List<CT_UnsignedInt>();
     this.sizeRepresentsField = new CT_SizeRepresents();
     this.showNegBubblesField = new CT_Boolean();
     this.bubbleScaleField = new CT_BubbleScale();
     this.bubble3DField = new CT_Boolean();
     this.dLblsField = new CT_DLbls();
     this.serField = new List<CT_BubbleSer>();
     this.varyColorsField = new CT_Boolean();
 }