Change/apply style (W)

Modified on Mon, 5 Oct at 1:55 PM

BaseExtensions can be used to format text and change style in Word. Here, the user will be able to change the font and create lists with bullets or numbers.

Module is located here:

Code
...\ModuleLibrary\BaseExtensions\01_nocontext_Tools\12_W_styleShortcuts.xml

CMD

<Cmd case="BaseExtensions:change-style" style="x"/>

Parameter

style

Define which style the command should format text to. This can either be a custom style or a built in style from this list.

We always recommend to use the built in styles (enumerations) from the list as we then ensure to target the correct style when style names are translated depending on Office language.

level

This parameter is optional and can be used to apply a level to be used from the applied style. Define which level (1-9) the selected range should be set to.

ApplyToEntireParagraph

This parameter is optional. If it is set to true, the style will be applied to the entire paragraph and not just selected text. It defaults to false if omitted.

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