Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
BuildingBlocks Interface
Collapse the table of content
Expand the table of content

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)

[GuidAttribute("C6D50987-25D7-408A-BFF2-90BF86A24E93")]
public interface BuildingBlocks

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.

Community Additions

ADD
Show:
© 2015 Microsoft