Edit

Share via


BuildingBlockEntries Interface

Definition

Represents a collection of all BuildingBlock objects in a template.

public interface class BuildingBlockEntries
[System.Runtime.InteropServices.Guid("39709229-56A0-4E29-9112-B31DD067EBFD")]
public interface BuildingBlockEntries
type BuildingBlockEntries = interface
Public Interface BuildingBlockEntries
Attributes

Remarks

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 BuildingBlockEntries collection. This is because building blocks are organized by using types and categories. When you use the BuildingBlockEntries 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.

Note: Using the Category and Type properties for the BuildingBlock object enables you to determine the category and type for a building block.

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

Properties

Application

Returns an _Application object that represents the Microsoft Word application.

Count

Returns the number of items in the BuildingBlockEntries collection. Read-only.

Creator

Returns a 32-bit integer that indicates the application in which the add-in was created. Read-only.

Parent

Returns the parent object of the specified BuildingBlockEntries object.

Methods

Add(String, WdBuildingBlockTypes, String, Range, Object, WdDocPartInsertOptions)

Creates a new building block entry in a template and returns a BuildingBlock object that represents the new building block entry.

Item(Object)

Returns the specified item in the collection.

Applies to