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_TextBody Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_TextBody ctObj = new CT_TextBody(); ctObj.p = new List<CT_TextParagraph>(); foreach (XmlNode childNode in node.ChildNodes) { if (childNode.LocalName == "bodyPr") ctObj.bodyPr = CT_TextBodyProperties.Parse(childNode, namespaceManager); else if (childNode.LocalName == "lstStyle") ctObj.lstStyle = CT_TextListStyle.Parse(childNode, namespaceManager); else if (childNode.LocalName == "p") ctObj.p.Add(CT_TextParagraph.Parse(childNode, namespaceManager)); } return ctObj; }