Example #1
0
        public static CT_LineNumber Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_LineNumber ctObj = new CT_LineNumber();

            ctObj.countBy  = XmlHelper.ReadString(node.Attributes["w:countBy"]);
            ctObj.start    = XmlHelper.ReadString(node.Attributes["w:start"]);
            ctObj.distance = XmlHelper.ReadULong(node.Attributes["w:distance"]);
            if (node.Attributes["w:restart"] != null)
            {
                ctObj.restart = (ST_LineNumberRestart)Enum.Parse(typeof(ST_LineNumberRestart), node.Attributes["w:restart"].Value);
            }
            return(ctObj);
        }
Example #2
0
 public static CT_LineNumber Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_LineNumber ctObj = new CT_LineNumber();
     ctObj.countBy = XmlHelper.ReadString(node.Attributes["w:countBy"]);
     ctObj.start = XmlHelper.ReadString(node.Attributes["w:start"]);
     ctObj.distance = XmlHelper.ReadULong(node.Attributes["w:distance"]);
     if (node.Attributes["w:restart"] != null)
         ctObj.restart = (ST_LineNumberRestart)Enum.Parse(typeof(ST_LineNumberRestart), node.Attributes["w:restart"].Value);
     return ctObj;
 }