Compartilhar via


Language.WritingStyleList Property

Word Developer Reference

Returns a string array that contains the names of all writing styles available for the specified language. Read-only Variant.

Syntax

expression.WritingStyleList

expression   An expression that returns a Language object.

Example

This example displays each writing style available for U.S. English. Each writing style and its number in the array are also displayed in the Immediate window of the Visual Basic editor.

Visual Basic for Applications
  Sub WritingStyles()
    Dim WrStyles As Variant
    Dim i As Integer
WrStyles = Languages(wdEnglishUS).<strong class="bterm">WritingStyleList</strong>
For i = 1 To UBound(WrStyles)
    MsgBox WrStyles(i)
    Debug.Print WrStyles(i) &amp; " [" &amp; Trim(Str$(i)) &amp; "]"
Next i

End Sub

See Also