BuildingBlocks Interface

Represents a collection of BuildingBlock objects for a specific building block type and category in a template.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
<GuidAttribute("C6D50987-25D7-408A-BFF2-90BF86A24E93")> _
Public Interface BuildingBlocks
'Usage
Dim instance As BuildingBlocks
[GuidAttribute("C6D50987-25D7-408A-BFF2-90BF86A24E93")]
public interface BuildingBlocks

Remarks

Use the Add(String, Range, Object%, WdDocPartInsertOptions) method to create a new building block and add it to a template.

The collection returned with the BuildingBlocks collection is a filtered collection based on the type and category. Depending on how you access the collection, the collection returned changes. For example, if you access a collection of building blocks with a type of wdTypeAutoText with a category of "General", the returned collection may be different from the collection returned if you access a collection of building blocks with a type of wdTypeAutoText with a category of "Custom". It is also different from the collection returned if you access the collection of building blocks with a type of wdTypeCustomAutoText with a category of "General".

For more information about building blocks, see Working with Building Blocks.

See Also

Reference

BuildingBlocks Members

Microsoft.Office.Interop.Word Namespace