Category Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an individual category of a building block type.
public interface class Category
[System.Runtime.InteropServices.Guid("ECFBDB5E-ACD2-4530-AD79-4560B7FF055C")]
public interface Category
type Category = interface
Public Interface Category
- Attributes
Remarks
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
Properties
Application |
Returns an _Application object that represents the Microsoft Word application. |
BuildingBlocks |
Returns the building blocks for a category. Read-only. |
Creator |
Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only. |
Index |
Returns the position of an item in a collection. Read-only. |
Name |
Returns the name of the specified object. Read-only. |
Parent |
Returns the parent object of the specified Category object. |
Type |
Returns the type of building block for a building block category. Read-only. |