Set proofing language (W)

Modified on Mon, 5 Oct at 1:54 PM

We can adjust the proofing language on all or a select choice of styles in a Word document using this command. This command only changes the language on styles. The default grammar language used in Word comes from the users keyboard-settings.

CMD

This command is called: BaseExtensions:set-proofing-language

Examples of the command:
<Cmd case="BaseExtensions:set-proofing-language" ProofingLanguage="wdEstonian" StylesSetProofingLanguage="wdStyleHeading1;wdStyleHeading2;wdStyleHeading3" />

<Cmd case="BaseExtensions:set-proofing-language" ProofingLanguage="wdEstonian"
StylesSetProofingLanguage="All" />

Parameters

ProofingLanguage or proofing-language

Required. The new proofing language which should be used and it must be selected from this WdLanguageID

StylesSetProofingLanguage or styles-set-proofing-language

Defines which styles in the document should update their proofing language. It is a list of strings separated by ; and it can include builtin stylenames from WdBuiltinStyle or custom names as string.
A third option is "All" which will update all styles that has a languageID-property.
If omitted only the Normal-style (wdStyleNormal) will be updated.
Example: StylesSetProofingLanguage="Normal;wdStyleHeading1;wdStyleHeading2"
Note: Stylenames are subject to user-language so "Heading 1" is not always "Heading 1" for the user.

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