How to remove content between paragraphs

How to remove content between paragraphs in docx file?

@parthu,

Thanks for your inquiry. In your case, we suggest you following solution. Hope this helps you.

  1. Please move the cursor to the start of first paragraph and insert BookmarkStart node using DocumentBuilder.StartBookmark method.
  2. Move the cursor to the second paragraph and insert BookmarkEnd node using DocumentBuilder.EndBookmark method.
  3. Once bookmark is inserted into document, please set its text to empty string using Bookmark.Text property. This will remove the content between paragraphs.