This documentation is archived and is not being maintained.

ListBox.ObjectCollection Members

ListBox.ObjectCollection overview

Public Constructors

public constructorListBoxObjectCollection Constructor Overloaded. Initializes a new instance of ListBox.ObjectCollection.

Public Properties

public propertyCount

Supported by the .NET Compact Framework.

Gets the number of items in the collection.
public propertyIsReadOnly

Supported by the .NET Compact Framework.

Gets a value indicating whether the collection is read-only.
public propertyItem Gets or sets the item at the specified index within the collection.

In C#, this property is the indexer for the ListBox.ObjectCollection class.

Public Methods

public methodAdd

Supported by the .NET Compact Framework.

Adds an item to the list of items for a ListBox.
public methodAddRange Overloaded. Adds a group of items to the list of items for a ListBox.
public methodClear

Supported by the .NET Compact Framework.

Removes all items from the collection.
public methodContains

Supported by the .NET Compact Framework.

Determines whether the specified item is located within the collection.
public methodCopyTo Copies the entire collection into an existing array of objects at a specified location within the array.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetEnumerator

Supported by the .NET Compact Framework.

Returns an enumerator to use to iterate through the item collection.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodIndexOf

Supported by the .NET Compact Framework.

Returns the index within the collection of the specified item.
public methodInsert

Supported by the .NET Compact Framework.

Inserts an item into the list box at the specified index.
public methodRemove

Supported by the .NET Compact Framework.

Removes the specified object from the collection.
public methodRemoveAt

Supported by the .NET Compact Framework.

Removes the item at the specified index within the collection.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

ListBox.ObjectCollection Class | System.Windows.Forms Namespace

Show: