DocumentBase.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.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
Syntax
'Declaration
Public Property LockTheme As Boolean
public bool LockTheme { get; set; }
Property Value
Type: System.Boolean
true if users can change the document theme; otherwise, false.
Remarks
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.
.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.