How to: Insert a Content Control into a Building Block
Word Developer Reference |
Building blocks and content controls are extremely flexible. You can create building blocks that contain content controls, or you can create content controls that use building blocks to present rich content selections to the user. This topic shows how to insert a content control into a building block, which users can then insert into their documents.
The objects used in this sample are:
The following code inserts a content control into the active document, and then adds the content control to the collection of building blocks in the template attached to the active document.
|