Share via


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

Syntax

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

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

Parameters

Return Value

Type: System.String

Remarks

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

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Word Namespace