Share via


Document.LockTheme Property (2007 System)

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

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

Syntax

'Declaration
Public Property LockTheme As Boolean
'Usage
Dim instance As Document 
Dim value As Boolean 

value = instance.LockTheme

instance.LockTheme = value
public bool LockTheme { get; set; }
public:
property bool LockTheme {
    bool get ();
    void set (bool value);
}
public function get LockTheme () : boolean 
public function set LockTheme (value : boolean)

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

See Also

Reference

Document Class

Document Members

Microsoft.Office.Tools.Word Namespace