This document is archived and information here might be outdated. Recommended version. |
Provides access to members that control the Graphics element collection. Note: the IElementCollection interface has been superseded byIElementCollection2. Please consider using the more recent version.
The IElementCollection interface provides a tool for managing a collection of Graphic Elements. It includes functionality to handle feature-linked elements, such as annotation.
Name | Description | |
---|---|---|
Add | Adds an element to the collection. | |
Clear | Removes all the elements in the collection. | |
Count | Number of elements in the collection. | |
QueryItem | Element at the given index. | |
Remove | Remove an element from the collection. |
CoClasses and Classes | Description |
---|---|
ElementCollection | Collection of elements. |
Once the collection is created, elements can be added using the Add method and removed using the Remove method. Specific elements can be queried from the collection using the QueryItem method, while the entire collection can be iterated using the For Each...Next statement. The collection can be cleared of all elements using the Clear method. At anytime, the count of elements present in the collection is known using Count property.