Document.DocumentTheme Property
Gets the Microsoft Office theme that is applied to the document.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
Syntax
'Declaration
ReadOnly Property DocumentTheme As OfficeTheme
OfficeTheme DocumentTheme { get; }
Property Value
Type: Microsoft.Office.Core.OfficeTheme
A Microsoft.Office.Core.OfficeTheme object that represents the Microsoft Office theme that is applied to the document.
Remarks
Use the ApplyDocumentTheme method to apply a Microsoft Office theme to the document.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.