DocX icon indicating copy to clipboard operation
DocX copied to clipboard

Remove Sections

Open AlexanderMair opened this issue 7 years ago • 4 comments

Hi, I am loading an existing .docx file, it contains some paragraphs and some continuous section-breaks for structuring. Now i want to remove some sections, included the text between two section-breaks. I have solved this by cleaning up the whole document and then reinsert the sections i want. Is there a better way to do this? And finally i want to remove all section-breaks, so that the document only contains text. Is there any possible solution?

AlexanderMair avatar Nov 19 '18 09:11 AlexanderMair

I have a similar situation - I have a document that have sections that are optional, and programmatically want to remove when not applicable. What is the best way to remove a section?

dbatesx avatar Aug 19 '21 09:08 dbatesx

Hi, Currently, there is no Section.Remove() method. But v2.1 will have this kind of method.

Thank you.

XceedBoucherS avatar Aug 19 '21 20:08 XceedBoucherS