/// <summary> /// /// </summary> /// <param name="paragraphDefnToInsertAfter"></param> /// <returns></returns> public IStTxtPara InsertNewParagraphAfter(XmlNode paragraphDefnToInsertAfter) { ParagraphBuilder pb = new ParagraphBuilder(m_cache, m_text.ContentsOA.ParagraphsOS); IStTxtPara newPara = null; if (m_textDefn != null) { // Append insert a new paragraph node. XmlElement newParaDefn = InsertNewParagraphDefn(paragraphDefnToInsertAfter); newPara = pb.CreateNewParagraph(newParaDefn); } else { newPara = pb.AppendParagraph(); } return newPara; }