Export (0) Print
Expand All

Category Interface

Office 2010

Represents an individual category of a building block type.

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

[GuidAttribute("ECFBDB5E-ACD2-4530-AD79-4560B7FF055C")]
public interface Category

Microsoft Office Word uses types and categories to organize building blocks. Each building block type is represented by a WdBuildingBlockTypes constant. Each category is a unique string that a user defines. Word comes with two categories already defined: "General" and "Custom"; you can create additional categories as you need.

Use the Type property to access the building block type associated with a specific category. Use the BuildingBlocks property to access the collection of building blocks for a category.

Use the Item(Object) method of the Categories collection to access an exising category; to create a new category, use the Add(String, WdBuildingBlockTypes, String, Range, Object, WdDocPartInsertOptions) method of the BuildingBlockEntries collection. Set the value of the Category parameter.

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

Community Additions

ADD
Show:
© 2014 Microsoft