ShapeCollection Members
Include Protected Members
Include Inherited Members
Represents a collection of Shape objects.
The ShapeCollection type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ShapeCollection | Initializes a new instance of the ShapeCollection class. |
Top
Methods
Name | Description | |
---|---|---|
Add | Adds the specified Shape to the ShapeCollection. | |
AddRange | Adds an array of Shape objects to the ShapeCollection. | |
Clear | Removes all shapes from the collection. | |
Contains | Determines whether the specified Shape is a member of the collection. | |
ContainsKey | Determines whether the ShapeCollection contains an item with the specified key. | |
CopyTo | Copies the whole ShapeCollection to a compatible one-dimensional Array, starting at the specified index of the destination array. | |
Dispose | Releases the unmanaged resources used by the ShapeCollection. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetChildIndex | Overloaded. Retrieves the index of the specified Shape in the ShapeCollection. | |
GetEnumerator | Retrieves a reference to an enumerator object that is used to iterate over a ShapeCollection. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the type of the current instance. (Inherited from Object.) | |
IndexOf | Retrieves the index of the specified Shape in the ShapeCollection. | |
IndexOfKey | Retrieves the index of the first occurrence of the specified item in the collection. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Remove | Removes the specified Shape from the ShapeCollection. | |
RemoveAt | Removes a Shape from the ShapeCollection at the specified indexed location. | |
SetChildIndex | Sets the index of the specified Shape in the ShapeCollection to the specified index value. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Properties
Name | Description | |
---|---|---|
Count | Gets the number of shapes in the collection. | |
IsReadOnly | Gets a value indicating whether a collection is read-only. | |
Item | Gets the Shape at the specified indexed location in the collection. | |
Owner | Gets the ShapeContainer that owns the ShapeCollection. |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IList.Add | ||
IList.Contains | ||
ICollection.CopyTo | ||
IList.IndexOf | ||
IList.Insert | ||
IList.IsFixedSize | ||
ICollection.IsSynchronized | ||
IList.Remove | ||
ICollection.SyncRoot |
Top