Пример #1
0
        public static CT_PieChart Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_PieChart ctObj = new CT_PieChart();

            ctObj.ser    = new List <CT_PieSer>();
            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 == "firstSliceAng")
                {
                    ctObj.firstSliceAng = CT_FirstSliceAng.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "ser")
                {
                    ctObj.ser.Add(CT_PieSer.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "extLst")
                {
                    ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Пример #2
0
        public static CT_FirstSliceAng Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_FirstSliceAng ctObj = new CT_FirstSliceAng();

            if (node.Attributes["val"] != null)
            {
                ctObj.val = XmlHelper.ReadUShort(node.Attributes["val"]);
            }
            return(ctObj);
        }
Пример #3
0
 public CT_DoughnutChart()
 {
     this.extLstField = new List<CT_Extension>();
     this.holeSizeField = new CT_HoleSize();
     this.firstSliceAngField = new CT_FirstSliceAng();
     this.dLblsField = new CT_DLbls();
     this.serField = new List<CT_PieSer>();
     this.varyColorsField = new CT_Boolean();
 }
Пример #4
0
 public static CT_FirstSliceAng Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_FirstSliceAng ctObj = new CT_FirstSliceAng();
     if (node.Attributes["val"] != null)
         ctObj.val = XmlHelper.ReadUShort(node.Attributes["val"]);
     return ctObj;
 }