Esempio n. 1
0
 public static CT_TableStyle Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_TableStyle ctObj = new CT_TableStyle();
     ctObj.name = XmlHelper.ReadString(node.Attributes["name"]);
     ctObj.pivot = XmlHelper.ReadBool(node.Attributes["pivot"]);
     ctObj.table = XmlHelper.ReadBool(node.Attributes["table"]);
     ctObj.count = XmlHelper.ReadUInt(node.Attributes["count"]);
     ctObj.tableStyleElement = new List<CT_TableStyleElement>();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "tableStyleElement")
             ctObj.tableStyleElement.Add(CT_TableStyleElement.Parse(childNode, namespaceManager));
     }
     return ctObj;
 }
Esempio n. 2
0
        public static CT_TableStyles Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_TableStyles ctObj = new CT_TableStyles();

            ctObj.count             = XmlHelper.ReadUInt(node.Attributes["count"]);
            ctObj.defaultTableStyle = XmlHelper.ReadString(node.Attributes["defaultTableStyle"]);
            ctObj.defaultPivotStyle = XmlHelper.ReadString(node.Attributes["defaultPivotStyle"]);
            ctObj.tableStyle        = new List <CT_TableStyle>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "tableStyle")
                {
                    ctObj.tableStyle.Add(CT_TableStyle.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Esempio n. 3
0
        public static CT_TableStyle Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_TableStyle ctObj = new CT_TableStyle();

            ctObj.name              = XmlHelper.ReadString(node.Attributes["name"]);
            ctObj.pivot             = XmlHelper.ReadBool(node.Attributes["pivot"]);
            ctObj.table             = XmlHelper.ReadBool(node.Attributes["table"]);
            ctObj.count             = XmlHelper.ReadUInt(node.Attributes["count"]);
            ctObj.tableStyleElement = new List <CT_TableStyleElement>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "tableStyleElement")
                {
                    ctObj.tableStyleElement.Add(CT_TableStyleElement.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }