internal static CT_ExternalRow Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            CT_ExternalRow row = new CT_ExternalRow();

            row.r = XmlHelper.ReadUInt(node.Attributes["r"]);
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "cell")
                {
                    row.cellField.Add(CT_ExternalCell.Parse(childNode, namespaceManager));
                }
            }
            return(row);
        }
        internal static CT_ExternalCell Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            CT_ExternalCell ctObj = new CT_ExternalCell();

            ctObj.rField = XmlHelper.ReadString(node.Attributes["r"]);
            if (node.Attributes["t"] != null)
            {
                ctObj.tField = (ST_CellType)Enum.Parse(typeof(ST_CellType), node.Attributes["t"].Value);
            }
            ctObj.vm = XmlHelper.ReadUInt(node.Attributes["vm"]);

            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "v")
                {
                    ctObj.v = childNode.InnerText;
                }
            }
            return(ctObj);
        }
Пример #3
0
        internal static CT_ExternalCell Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            CT_ExternalCell ctObj = new CT_ExternalCell();
            ctObj.rField = XmlHelper.ReadString(node.Attributes["r"]);
            if (node.Attributes["t"] != null)
                ctObj.tField = (ST_CellType)Enum.Parse(typeof(ST_CellType), node.Attributes["t"].Value);
            ctObj.vm = XmlHelper.ReadUInt(node.Attributes["vm"]);

            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "v")
                    ctObj.v = childNode.InnerText;
            }
            return ctObj;
        }