3.22 Categories

Provides a category for a collection.

3.22.1 Properties

Property

Access

Description

Application

R/O

Application. The Application object.

Count

R/O

Long. The number of items in this collection.

_NewEnum

R/O

Enumeration object. Implements IEnumVARIANT. For Windows only.

Parent

R/O

IDispatch pointer. The Dispatch pointer at the object that owns this Collection.

ParentType

R/O

CategoryParentObjectTypeConstant. An enumeration value detailing what type of parent object owns this collection. Use this value to quickly determine how to cast the Parent IDispatch pointer returned in the Parent property.

3.22.2 Methods

Category Add(CategoryDefinition NewCategory)

Adds a new Category to the collection (see CategoryParentObjectTypeConstants). The new category is given by the passed in NewCategory Category Definition object. Returns a Category object. Throws an exception if the given Category Definition is already in the collection.

Category Item(Long Index)

Default. Returns the Category object located at the given Index in the collection. Valid indexes are 1 through Count, inclusive. Throws an exception if the index is outside of this range.