Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

_Document.ActiveWritingStyle Property 

Returns or sets the writing style for a specified language in the specified document.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Dim _Document1 As _Document

Dim key As Object
Dim returnValue As String
returnValue = _Document1.ActiveWritingStyle(key)

Dim sampleValue As String
_Document1.ActiveWritingStyle(key) = sampleValue

string this[
	[In] ref object LanguageID
] {get; set;}
public System.String get_Item(
	/*in*/System.Object LanguageID
public void set_Item(
	/*in*/System.Object LanguageID
In JScript, you can use Indexed Properties defined by a class, but you cannot define your own.



Required Object. The language for which the writing style is set in the specified document. Can be either a string or one of the WdLanguageID constants.

The WritingStyleList property returns an array of the names of the available writing styles.

Some of the constants listed above may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Community Additions

© 2015 Microsoft