_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
- DocumentType
Type: Microsoft.Office.Interop.Word.WdDocumentMedium
A WdDocumentMedium constant indicating the type of new document for which you want to retrieve the default theme name.
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.