public static CT_TrendlineLbl Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_TrendlineLbl ctObj = new CT_TrendlineLbl(); ctObj.extLst = new List<CT_Extension>(); foreach (XmlNode childNode in node.ChildNodes) { if (childNode.LocalName == "layout") ctObj.layout = CT_Layout.Parse(childNode, namespaceManager); else if (childNode.LocalName == "tx") ctObj.tx = CT_Tx.Parse(childNode, namespaceManager); else if (childNode.LocalName == "numFmt") ctObj.numFmt = CT_NumFmt.Parse(childNode, namespaceManager); else if (childNode.LocalName == "spPr") ctObj.spPr = CT_ShapeProperties.Parse(childNode, namespaceManager); else if (childNode.LocalName == "txPr") ctObj.txPr = CT_TextBody.Parse(childNode, namespaceManager); else if (childNode.LocalName == "extLst") ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager)); } return ctObj; }
public CT_Trendline() { this.extLstField = new List<CT_Extension>(); this.trendlineLblField = new CT_TrendlineLbl(); this.dispEqField = new CT_Boolean(); this.dispRSqrField = new CT_Boolean(); this.interceptField = new CT_Double(); this.backwardField = new CT_Double(); this.forwardField = new CT_Double(); this.periodField = new CT_Period(); this.orderField = new CT_Order(); this.trendlineTypeField = new CT_TrendlineType(); }