LockTheme Property
TOC
Collapse the table of content
Expand the table of content

Document.LockTheme Property

 

Gets or sets a value that indicates whether users can change the document theme.

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

bool LockTheme { get; set; }

Property Value

Type: System.Boolean

true if users can change the document theme; otherwise, false.

Use the ApplyDocumentTheme method to apply a Microsoft Office theme. Use the DocumentTheme property to get the Microsoft Office theme that is applied to the document.

Return to top
Show:
© 2016 Microsoft