Пример #1
0
 public static CT_CellStyle Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_CellStyle ctObj = new CT_CellStyle();
     ctObj.name = XmlHelper.ReadString(node.Attributes["name"]);
     ctObj.xfId = XmlHelper.ReadUInt(node.Attributes["xfId"]);
     ctObj.builtinId = XmlHelper.ReadUInt(node.Attributes["builtinId"]);
     ctObj.iLevel = XmlHelper.ReadUInt(node.Attributes["iLevel"]);
     ctObj.hidden = XmlHelper.ReadBool(node.Attributes["hidden"]);
     ctObj.customBuiltin = XmlHelper.ReadBool(node.Attributes["customBuiltin"]);
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "extLst")
             ctObj.extLst = CT_ExtensionList.Parse(childNode, namespaceManager);
     }
     return ctObj;
 }
Пример #2
0
        public static CT_CellStyles Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_CellStyles ctObj = new CT_CellStyles();

            ctObj.count     = XmlHelper.ReadUInt(node.Attributes["count"]);
            ctObj.cellStyle = new List <CT_CellStyle>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "cellStyle")
                {
                    ctObj.cellStyle.Add(CT_CellStyle.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Пример #3
0
        public static CT_CellStyle Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_CellStyle ctObj = new CT_CellStyle();

            ctObj.name          = XmlHelper.ReadString(node.Attributes["name"]);
            ctObj.xfId          = XmlHelper.ReadUInt(node.Attributes["xfId"]);
            ctObj.builtinId     = XmlHelper.ReadUInt(node.Attributes["builtinId"]);
            ctObj.iLevel        = XmlHelper.ReadUInt(node.Attributes["iLevel"]);
            ctObj.hidden        = XmlHelper.ReadBool(node.Attributes["hidden"]);
            ctObj.customBuiltin = XmlHelper.ReadBool(node.Attributes["customBuiltin"]);
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "extLst")
                {
                    ctObj.extLst = CT_ExtensionList.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }