public CT_ChartSpace() { this.extLstField = new List<CT_Extension>(); this.userShapesField = new CT_RelId(); this.printSettingsField = new CT_PrintSettings(); this.externalDataField = new CT_ExternalData(); this.txPrField = new CT_TextBody(); this.spPrField = new CT_ShapeProperties(); this.chartField = new CT_Chart(); this.protectionField = new CT_Protection(); this.pivotSourceField = new CT_PivotSource(); this.clrMapOvrField = new CT_ColorMapping(); this.styleField = new CT_Style(); this.roundedCornersField = new CT_Boolean(); this.langField = new CT_TextLanguageID(); this.date1904Field = new CT_Boolean(); }
public static CT_PivotSource Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_PivotSource ctObj = new CT_PivotSource(); ctObj.extLst = new List<CT_Extension>(); foreach (XmlNode childNode in node.ChildNodes) { if (childNode.LocalName == "name") ctObj.name = childNode.InnerText; else if (childNode.LocalName == "fmtId") ctObj.fmtId = CT_UnsignedInt.Parse(childNode, namespaceManager); else if (childNode.LocalName == "extLst") ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager)); } return ctObj; }