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:
...\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.
Comments
0 comments
Article is closed for comments.