Share via


ContentControl.LockContentControl Property

Returns or sets a Boolean that represents whether the user can delete a content control from the active document. Read/write.

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

Syntax

'Declaration
Property LockContentControl As Boolean
    Get
    Set
'Usage
Dim instance As ContentControl
Dim value As Boolean

value = instance.LockContentControl

instance.LockContentControl = value
bool LockContentControl { get; set; }

Property Value

Type: System.Boolean
Boolean

Remarks

The default value of this property is False. This property corresponds to the Content control cannot be deleted check box in the Content Control Properties dialog box.

Note

You cannot set this property if the Temporary property is set to True.

See Also

Reference

ContentControl Interface

ContentControl Members

Microsoft.Office.Interop.Word Namespace