Represents a collection of all BuildingBlock objects in a template.
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Use the Add(String, WdBuildingBlockTypes, String, Range, Object, WdDocPartInsertOptions) method to create a new building block and add it to a template.
Unlike the Add(String, Range, Object, WdDocPartInsertOptions) method for the BuildingBlocks collection, you need to specify the type and category when you add a building block using the Add(String, Range, Object, WdDocPartInsertOptions) method of the collection. This is because building blocks are organized by using types and categories. When you use the collection, you are accessing the entire collection of building blocks in a template; however, when you use the BuildingBlocks collection, you are accessing the collection of building blocks for a specific type and category in a template.
For more information about building blocks, see Working with Building Blocks.