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); }
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; }