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); }
public CT_TableCell() { this.extLstField = new CT_OfficeArtExtensionList(); this.tcPrField = new CT_TableCellProperties(); this.txBodyField = new CT_TextBody(); this.rowSpanField = 1; this.gridSpanField = 1; this.hMergeField = false; this.vMergeField = false; }
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; }