ListBox.ObjectCollection Class
Represents the collection of items in a ListBox.
Definition
Members Table
The following table lists the members exposed by the ListBox.ObjectCollection object. Click a tab on the left to choose the type of member you want to view.
Methods
| Method | Description |
|---|
| Add | Adds an item to the list of items for the ListBox.ObjectCollection. |
| AddRange | Overloaded. Adds an array of items to the ListBox.ObjectCollection. |
| Clear | Removes all items from the ListBox.ObjectCollection. |
| Contains | Determines whether the specified item is located within the ListBox.ObjectCollection. |
| CopyTo | Overloaded. Copies the elements of the ListBox.ObjectCollection to an Array, starting at a particular Array index. |
| Equals | Overloaded. Compares two objects to determine if they are equal. (Inherited from Object) |
| GetEnumerator | Returns an enumerator to use to iterate through the ListBox.ObjectCollection. |
| GetHashCode | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| IndexOf | Determines the index of a specific item in the ListBox.ObjectCollection. |
| Insert | Inserts an item into the ListBox.ObjectCollection at the specified index. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object) |
| Remove | Removes the specified object from the collection. |
| RemoveAt | Removes the item at the specified index within the collection. |
| System.Collections.ICollection.CopyTo | Copies the elements of the ListBox.ObjectCollection into an Array, starting at a particular Array index. |
| ToString | Returns a String that represents the current Object. (Inherited from Object) |
| this[] | Gets or sets the item at the specified index within the collection. |
Properties
Inheritance Hierarchy
Object
Class Information
| Namespace | System.Windows.Forms |
|---|
| Flash Library | System.Windows.Forms.scl |
|---|
| Flash Library Version | 2.0.0.2118 |
|---|
| Silverlight Library | System.Windows.Forms.dll |
|---|