Delete styled text (W)

Modified on Mon, 5 Oct at 1:55 PM

This feature is a simple tool that can be used to delete text in a document based on the style of the text. In this way, the user can easily delete all text in a document that are of a specific style.

Module is located here:

Code
...\ModuleLibrary\BaseExtensions\01_nocontext_Tools\87_W_deleteStyledText.xml

CMD

<Cmd case="BaseExtensions:delete-styled-text" StyleName="x"/>

Parameter

StyleName

Define the name of the style concerned. This can either be a built-in style or the name of a customized style. As an example, if a document contains text that is applied with a style called "CustomizedStyle" and this name is defined in this parameter, the feature will delete all text in the document with the style.

This command works for both Paragraph and Character styles. However, it experiences some delay or time in screenupdating.

A new command which accepts the same parameters as 'delete-styled-text' has been implemented. It runs on the new logic so it experiences minimal lag and executes swiftly compared to the above command.

CMD

<Cmd case="BaseExtensions:delete-styled-text-v2" StyleName="x"/>

This command works only when the style type is Paragraph style. This can not be applied for Linked or character style. It deletes the text only if complete paragraph is in the style regardless how the style is build. It means that with this configuration only paragraph style works.

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