Export (0) Print
Expand All
Expand Minimize

_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)

'Usage
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
System.String);
In JScript, you can use Indexed Properties defined by a class, but you cannot define your own.

Parameters

LanguageID

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

ADD
Show:
© 2014 Microsoft