ImageList.ImageCollection Methods
.NET Framework 4.5
The ImageList.ImageCollection type exposes the following members.
| Name | Description | |
|---|---|---|
|
Add(Icon) | Adds the specified icon to the ImageList. |
|
Add(Image) | Adds the specified image to the ImageList. |
|
Add(Image, Color) | Adds the specified image to the ImageList, using the specified color to generate the mask. |
|
Add(String, Icon) | Adds an icon with the specified key to the end of the collection. |
|
Add(String, Image) | Adds an image with the specified key to the end of the collection. |
|
AddRange | Adds an array of images to the collection. |
|
AddStrip | Adds an image strip for the specified image to the ImageList. |
|
Clear | Removes all the images and masks from the ImageList. |
|
Contains | Not supported. The IList.Contains method indicates whether a specified object is contained in the list. |
|
ContainsKey | Determines if the collection contains an image with the specified key. |
|
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
|
GetEnumerator | Returns an enumerator that can be used to iterate through the item collection. |
|
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 | Not supported. The IndexOf method returns the index of a specified object in the list. |
|
IndexOfKey | Determines the index of the first occurrence of an image with the specified key in the collection. |
|
Remove | Not supported. The IList.Remove method removes a specified object from the list. |
|
RemoveAt | Removes an image from the list. |
|
RemoveByKey | Removes the image with the specified key from the collection. |
|
SetKeyName | Sets the key for an image in the collection. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
AsParallel | Enables parallelization of a query. (Defined by ParallelEnumerable.) |
|
AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
|
Cast<TResult> | Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
|
OfType<TResult> | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
| Name | Description | |
|---|---|---|
|
ICollection.CopyTo | Infrastructure. Copies the items in this collection to a compatible one-dimensional array, starting at the specified index of the target array. |
|
IList.Add | Infrastructure. Adds the specified image to the ImageList. |
|
IList.Contains | Infrastructure. Implements the Contains method. Throws a NotSupportedException in all cases. |
|
IList.IndexOf | Infrastructure. Implements the IndexOf method. Throws a NotSupportedException in all cases. |
|
IList.Insert | Infrastructure. Implements the Insert method. Throws a NotSupportedException in all cases. |
|
IList.Remove | Infrastructure. Implements the Remove. Throws a NotSupportedException in all cases. |