An instance of the ShapeCollection class contains all displayed shapes represented through objects of type Shape. It is inherited from the abstract class System.Collections.CollectionBase and implements the System.Collections.IEnumerable and System.Collections.IEnumerator interfaces. For a list of properties, methods and events of these classes and interfaces see the .NET Framework reference.

Syntax

public class ShapeCollection: CollectionBase, IEnumerable, IEnumerator
Public Class ShapeCollection
  Inherits CollectionBase
  Implements IEnumerable
  Implements IEnumerator

Introduced: X13.

Methods

Method Description
Add Adds an object of the type Shape to the collection.
Insert Inserts an object of the type Shape to the collection at a specified index.
Remove Removes an object of the type Shape from the collection.

Properties

Property Description
Item Gets an object of type Shape from the collection.