Delete duplicated content controls

Modified on Mon, 5 Oct at 1:54 PM

BaseExtensions can be used to delete duplicated content controls. This can either be done by clicking at a button or as an event, when a document is opened. In this way, this is a cleanup that removes content controls that are both named the same and positioned next to each other. This feature does also handle content controls inside content controls.

Module is located here:

Code
...\ModuleLibrary\BaseExtensions\04_nocontext_MISC\09_W_deleteDuplicatedCC.xml

CMD

<Cmd case="BaseExtensions:content-control-duplicate" deleteEmptyParagraphs="x"/>

Parameter

deleteEmptyParagraphs

Define parameter to be true if the command should delete empty paragraphs too. Otherwise, it will not delete empty paragraphs if the parameter is set to false.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article