Table of Contents

Class ListBox.ObjectCollection

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Represents the abstract collection of items in a ListBox.

[ListBindable(false)]
public abstract class ListBox.ObjectCollection : IList, ICollection, IEnumerable
Inheritance
ListBox.ObjectCollection
Implements
Derived

Constructors

ObjectCollection(ListBox)

Initializes a new instance of the ListBox.ObjectCollection class.

Properties

Count

Gets the number of elements contained in the ICollection.

IsFixedSize

Gets a value indicating whether the IList has a fixed size.

IsReadOnly

Gets a value indicating whether the IList is read-only.

IsSynchronized

Gets a value indicating whether access to the ICollection is synchronized (thread safe).

this[int]

Gets or sets the element at the specified index.

Owner

Gets the ListBox that owns this instance.

SyncRoot

Gets an object that can be used to synchronize access to the ICollection.

Methods

Add(object?)

Adds an item to the IList.

Clear()

Removes all items from the IList.

Contains(object?)

Determines whether the IList contains a specific value.

CopyTo(Array, int)

Copies the elements of the ICollection to an Array, starting at a particular Array index.

GetEnumerator()

Returns an enumerator that iterates through a collection.

IndexOf(object?)

Determines the index of a specific item in the IList.

Insert(int, object?)

Inserts an item to the IList at the specified index.

Remove(object?)

Removes the first occurrence of a specific object from the IList.

RemoveAt(int)

Removes the IList item at the specified index.