public static CT_PageField Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_PageField ctObj = new CT_PageField(); if (node.Attributes["fld"] != null) ctObj.fld = XmlHelper.ReadInt(node.Attributes["fld"]); if (node.Attributes["item"] != null) ctObj.item = XmlHelper.ReadUInt(node.Attributes["item"]); if (node.Attributes["hier"] != null) ctObj.hier = XmlHelper.ReadInt(node.Attributes["hier"]); ctObj.name = XmlHelper.ReadString(node.Attributes["name"]); ctObj.cap = XmlHelper.ReadString(node.Attributes["cap"]); foreach (XmlNode childNode in node.ChildNodes) { if (childNode.LocalName == "extLst") ctObj.extLst = CT_ExtensionList.Parse(childNode, namespaceManager); } return ctObj; }
public CT_PageField AddNewPageField() { if (this.pageFieldField == null) this.pageFieldField = new List<CT_PageField>(); CT_PageField f = new CT_PageField(); this.pageFieldField.Add(f); return f; }