Document.ActiveTheme Property

Gets the name of the active theme plus the theme formatting options for the document.

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

Syntax

'Declaration
ReadOnly Property ActiveTheme As String
string ActiveTheme { get; }

Property Value

Type: System.String
The name of the active theme plus the theme formatting options for the document.

Remarks

This property returns "none" if the document does not 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 might not correspond to the theme's display name. To return a theme's display name, use the ActiveThemeDisplayName property.

.NET Framework Security

See Also

Reference

Document Interface

Microsoft.Office.Tools.Word Namespace