Share via


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

Syntax

'Declaration
Property ActiveWritingStyle ( _
    ByRef LanguageID As Object _
) As String
    Get
    Set
'Usage
Dim instance As _Document
Dim LanguageID As Object
Dim value As String

value = instance.ActiveWritingStyle(LanguageID)

instance.ActiveWritingStyle(LanguageID) = value
string this[
    ref Object LanguageID
] { get; set; }

Parameters

  • LanguageID
    Type: System.Object%
    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.

Property Value

Type: System.String

Remarks

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.

See Also

Reference

_Document Interface

_Document Members

Microsoft.Office.Interop.Word Namespace