BuildingBlockTypes Collection
Word Developer Reference |
Represents a collection of BuildingBlockType objects.
Version Information
Version Added: Word 2007
Remarks
Building block types are represented by WdBuildingBlockTypes constants. Use the Item method to access a specific type in the BuildingBlockTypes collection.
To loop through the different building block types, use a For loop with the Count property. The following example loops through the building block types and prints the name in the Immediate Window. (This example assumes that the Immediate Window is visible.)
Visual Basic for Applications |
---|
|
For more information about building blocks, see Working with Building Blocks.
See Also
- Word Object Model Reference
- BuildingBlockTypes Object Members
- How to: Bind Controls to a Specific Row in the Data Store When Inserting a Building Block
- How to: Create a Custom Building Block Gallery
- How to: Filter the Building Block List in a Content Control
- How to: Insert a Content Control into a Building Block
- How to: Set the Building Blocks That You Can Use for a Content Control
- Working with Building Blocks