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

            ctObj.count             = XmlHelper.ReadUInt(node.Attribute("count"));
            ctObj.defaultTableStyle = XmlHelper.ReadString(node.Attribute("defaultTableStyle"));
            ctObj.defaultPivotStyle = XmlHelper.ReadString(node.Attribute("defaultPivotStyle"));
            ctObj.tableStyle        = new List <CT_TableStyle>();
            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "tableStyle")
                {
                    ctObj.tableStyle.Add(CT_TableStyle.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }