public static CT_SheetPr Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_SheetPr ctObj = new CT_SheetPr(); ctObj.syncHorizontal = XmlHelper.ReadBool(node.Attributes["syncHorizontal"]); ctObj.syncVertical = XmlHelper.ReadBool(node.Attributes["syncVertical"]); ctObj.syncRef = XmlHelper.ReadString(node.Attributes["syncRef"]); ctObj.transitionEvaluation = XmlHelper.ReadBool(node.Attributes["transitionEvaluation"]); ctObj.transitionEntry = XmlHelper.ReadBool(node.Attributes["transitionEntry"]); ctObj.published = XmlHelper.ReadBool(node.Attributes["published"]); ctObj.codeName = XmlHelper.ReadString(node.Attributes["codeName"]); ctObj.filterMode = XmlHelper.ReadBool(node.Attributes["filterMode"]); ctObj.enableFormatConditionsCalculation = XmlHelper.ReadBool(node.Attributes["enableFormatConditionsCalculation"]); foreach (XmlNode childNode in node.ChildNodes) { if (childNode.LocalName == "tabColor") { ctObj.tabColor = CT_Color.Parse(childNode, namespaceManager); } else if (childNode.LocalName == "outlinePr") { ctObj.outlinePr = CT_OutlinePr.Parse(childNode, namespaceManager); } else if (childNode.LocalName == "pageSetUpPr") { ctObj.pageSetUpPr = CT_PageSetUpPr.Parse(childNode, namespaceManager); } } return(ctObj); }
public CT_OutlinePr AddNewOutlinePr() { this.outlinePrField = new CT_OutlinePr(); return(this.outlinePrField); }