Esempio n. 1
0
        internal static CT_ExternalDefinedNames Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            CT_ExternalDefinedNames ctObj = new CT_ExternalDefinedNames();

            foreach (XElement childNode in node.ChildElements())
            {
                ctObj.definedNameField.Add(CT_ExternalDefinedName.Parse(childNode, namespaceManager));
            }
            return(ctObj);
        }
Esempio n. 2
0
        internal static CT_ExternalDefinedName Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            CT_ExternalDefinedName name = new CT_ExternalDefinedName();

            name.nameField             = XmlHelper.ReadString(node.Attribute("name"));
            name.refersToField         = XmlHelper.ReadString(node.Attribute("refersTo"));
            name.sheetIdFieldSpecified = node.Attribute("sheetId") != null;
            if (name.sheetIdFieldSpecified)
            {
                name.sheetIdField = XmlHelper.ReadUInt(node.Attribute("sheetId"));
            }
            return(name);
        }