ContentControl.LockContentControl Property
Word Developer Reference |
Returns or sets a Boolean that represents whether the user can delete a content control from the active document. Read/write.
Syntax
expression.LockContentControl
expression An expression that returns a ContentControl object.
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. |
Example
The following example inserts a date content control into the active document, and then sets the contents of the content control and specifies that the user cannot edit the contents or delete the control from the document.
Visual Basic for Applications |
---|
|
See Also
- ContentControl Object
- ContentControl Object Members
- How to: Bind a Content Control to a Node in the Data Store
- How to: Bind Controls to a Specific Row in the Data Store When Inserting a Building Block
- How to: Change a Content Control from One Type to Another
- How to: Change the Editability of a Content Control
- How to: Filter the Building Block List in a Content Control
- How to: Insert a Content Control into a Building Block
- How to: Remove Data from the Data Store When Deleting a Content Control
- How to: Set the Building Blocks That You Can Use for a Content Control
- Walkthrough: Connect an Item in the Data Store to a SQL Server Database
- Walkthrough: Connect an Item in the Data Store to a Web Service
- Walkthrough: Connect an Item in the Data Store to an Access Database
- Walkthrough: Connect an Item in the Data Store to an Excel Workbook
- Working with Content Controls