[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets the writing style for a specified language in the document.
Assemblies: Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
Property ValueType: Microsoft.Office.Tools.Word.Document_ActiveWritingStyleType
A string that specifies the writing style for a specified language in the document.
The property is intended to be used with the following parameter.
One of the WdLanguageID values that specifies the language to set the writing style for in the specified document.
If you use the property without specifying a parameter, it returns a Document_ActiveWritingStyleType object that is is not intended to be used directly from your code.
To get a list of the available writing styles, use the WritingStyleList property.
The following code example displays the writing style of the text in the current selection. This example is for an application-level add-in.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.