_Document.ActiveTheme Property

Returns the name of the active theme plus the theme formatting options for the specified document.

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

Syntax

'Declaration
ReadOnly Property ActiveTheme As String
    Get
'Usage
Dim instance As _Document
Dim value As String

value = instance.ActiveTheme
string ActiveTheme { get; }

Property Value

Type: System.String

Remarks

This property returns "none" if the document doesn't have an active theme.

For an explanation of the value returned by this property, see the Name argument of the ApplyTheme method. The value returned by this property may not correspond to the theme's display name. To return a theme's display name, use the ActiveThemeDisplayName property.

See Also

Reference

_Document Interface

_Document Members

Microsoft.Office.Interop.Word Namespace