_Application.GetDefaultTheme Method

Returns a String that represents the name of the default theme plus the theme formatting options Microsoft Word uses for new documents, e-mail messages, or Web pages.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)


Function GetDefaultTheme ( _
    DocumentType As WdDocumentMedium _
) As String
Dim instance As _Application
Dim DocumentType As WdDocumentMedium
Dim returnValue As String

returnValue = instance.GetDefaultTheme(DocumentType)
string GetDefaultTheme(
    WdDocumentMedium DocumentType


Return Value

Type: System.String


You can also use the ThemeName property to return and set the default theme for new e-mail messages.

See Also


_Application Interface

_Application Members

Microsoft.Office.Interop.Word Namespace