Example #1
0
 public static CT_ProtectedRange Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_ProtectedRange ctObj = new CT_ProtectedRange();
     ctObj.password = XmlHelper.ReadBytes(node.Attributes["password"]);
     ctObj.name = XmlHelper.ReadString(node.Attributes["name"]);
     ctObj.securityDescriptor = XmlHelper.ReadString(node.Attributes["securityDescriptor"]);
     ctObj.sqref = new List<String>();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "sqref")
             ctObj.sqref.Add(childNode.InnerText);
     }
     return ctObj;
 }
Example #2
0
 public static CT_ProtectedRange Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_ProtectedRange ctObj = new CT_ProtectedRange();
     ctObj.password = XmlHelper.ReadBytes(node.Attributes["password"]);
     ctObj.name = XmlHelper.ReadString(node.Attributes["name"]);
     ctObj.securityDescriptor = XmlHelper.ReadString(node.Attributes["securityDescriptor"]);
     ctObj.sqref = XmlHelper.ReadString(node.Attributes["sqref"]);
     return ctObj;
 }