# MTEnumSpaceCollection

An object that holds a collection of MTEnumSpace objects.

## Program ID

Metratech.MTEnumSpaceCollection.1

## MTEnumSpaceCollection Methods

Add | Currently not used.

## MTEnumSpaceCollection Properties

Count | Returns the number of enum spaces in the collection.
Item | Returns the MTEnumSpace object at a specified index.
Size | Returns the number of enum spaces in the collection.

## Example

An example will be available in future versions of this online help system.

# Method Detail

## Add

Currently not used.

# Property Detail

## Count

Returns the number of enum spaces in the collection.

This is a read-only property

### Visual Basic Syntax

Property Count As Long

### C++ Syntax

[propget, id(3), helpstring("property Count")] HRESULT Count([out, retval] long *pVal);

### Return Value

Collection size.

## Item

Returns the MTEnumSpace object at a specified index.

This is a read-only property

### Visual Basic Syntax

Property Item(aIndex As Long)

### C++ Syntax

[propget, id(DISPID_VALUE), helpstring("property Item")] HRESULT Item(long aIndex, [out, retval] VARIANT *pVal);

### Arguments

long aIndex

Index

### Return Value

MTEnumSpace

## Size

Returns the number of enum spaces in the collection.

This is a read-only property

### Visual Basic Syntax

Property Size As Long

### C++ Syntax

[propget, id(2), helpstring("property Size")] HRESULT Size([out, retval] long *pVal);

### Return Value

Collection size.