Exemple #1
0
        public static CT_CellStyles Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_CellStyles ctObj = new CT_CellStyles();

            ctObj.count     = XmlHelper.ReadUInt(node.Attribute("count"));
            ctObj.cellStyle = new List <CT_CellStyle>();
            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "cellStyle")
                {
                    ctObj.cellStyle.Add(CT_CellStyle.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Exemple #2
0
        public static CT_CellStyle Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_CellStyle ctObj = new CT_CellStyle();

            ctObj.name          = XmlHelper.ReadString(node.Attribute("name"));
            ctObj.xfId          = XmlHelper.ReadUInt(node.Attribute("xfId"));
            ctObj.builtinId     = XmlHelper.ReadUInt(node.Attribute("builtinId"));
            ctObj.iLevel        = XmlHelper.ReadUInt(node.Attribute("iLevel"));
            ctObj.hidden        = XmlHelper.ReadBool(node.Attribute("hidden"));
            ctObj.customBuiltin = XmlHelper.ReadBool(node.Attribute("customBuiltin"));
            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "extLst")
                {
                    ctObj.extLst = CT_ExtensionList.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }