How to: Create a Custom Building Block Gallery
Word Developer Reference |
A building block gallery is a collection of building blocks that are of the same type. There are 32 different types of building block collections that you can create (by using the WdBuildingBlockTypes enumeration). Each of these types is a gallery. Microsoft Office Word 2007 provides some of these galleries as built-in building block collections, but most of them are provided so that you can organize your own building blocks. To provide added flexibility with your custom galleries, you can create categories within each gallery to further organize your custom building blocks.
The objects used in this sample are:
Sample
The following example creates a building block gallery that contains three building blocks.
Note |
---|
This example assumes that there are at least three paragraphs in the document. |
|