Share via


ShapeCollection Members

Include Protected Members
Include Inherited Members

Represents a collection of Shape objects.

The ShapeCollection type exposes the following members.

Constructors

  Name Description
Public method ShapeCollection Initializes a new instance of the ShapeCollection class.

Top

Methods

  Name Description
Public method Add Adds the specified Shape to the ShapeCollection.
Public method AddRange Adds an array of Shape objects to the ShapeCollection.
Public method Clear Removes all shapes from the collection.
Public method Contains Determines whether the specified Shape is a member of the collection.
Public method ContainsKey Determines whether the ShapeCollection contains an item with the specified key.
Public method CopyTo Copies the whole ShapeCollection to a compatible one-dimensional Array, starting at the specified index of the destination array.
Public method Dispose Releases the unmanaged resources used by the ShapeCollection.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetChildIndex Overloaded. Retrieves the index of the specified Shape in the ShapeCollection.
Public method GetEnumerator Retrieves a reference to an enumerator object that is used to iterate over a ShapeCollection.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method IndexOf Retrieves the index of the specified Shape in the ShapeCollection.
Public method IndexOfKey Retrieves the index of the first occurrence of the specified item in the collection.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove Removes the specified Shape from the ShapeCollection.
Public method RemoveAt Removes a Shape from the ShapeCollection at the specified indexed location.
Public method SetChildIndex Sets the index of the specified Shape in the ShapeCollection to the specified index value.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Properties

  Name Description
Public property Count Gets the number of shapes in the collection.
Public property IsReadOnly Gets a value indicating whether a collection is read-only.
Public property Item Gets the Shape at the specified indexed location in the collection.
Public property Owner Gets the ShapeContainer that owns the ShapeCollection.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IList.Add
Explicit interface implemetationPrivate method IList.Contains
Explicit interface implemetationPrivate method ICollection.CopyTo
Explicit interface implemetationPrivate method IList.IndexOf
Explicit interface implemetationPrivate method IList.Insert
Explicit interface implemetationPrivate property IList.IsFixedSize
Explicit interface implemetationPrivate property ICollection.IsSynchronized
Explicit interface implemetationPrivate method IList.Remove
Explicit interface implemetationPrivate property ICollection.SyncRoot

Top

See Also

Reference

ShapeCollection Class

Microsoft.VisualBasic.PowerPacks Namespace