ListBox.IntegerCollection Class
TOC
Collapse the table of content
Expand the table of content

ListBox::IntegerCollection Class

 

Represents a collection of integers in a ListBox.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

System::Object
  System.Windows.Forms::ListBox::IntegerCollection

public ref class IntegerCollection : IList, ICollection, IEnumerable

NameDescription
System_CAPS_pubmethodListBox::IntegerCollection(ListBox^)

Initializes a new instance of the ListBox::IntegerCollection class.

NameDescription
System_CAPS_pubpropertyCount

Gets the number of selected items in the ListBox.

System_CAPS_pubpropertyItem[Int32]

Gets or sets the Item having the specified index.

NameDescription
System_CAPS_pubmethodAdd(Int32)

Adds a unique integer to the collection in sorted order.

System_CAPS_pubmethodAddRange(array<Int32>^)

Adds an array of integers to the collection.

System_CAPS_pubmethodAddRange(ListBox::IntegerCollection^)

Adds the contents of an existing ListBox::IntegerCollection to another collection.

System_CAPS_pubmethodClear()

Removes all integers from the ListBox::IntegerCollection.

System_CAPS_pubmethodContains(Int32)

Determines whether the specified integer is in the collection.

System_CAPS_pubmethodCopyTo(Array^, Int32)

Copies the entire ListBox::IntegerCollection into an existing array of integers at a specified location within the array.

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodIndexOf(Int32)

Retrieves the index within the ListBox::IntegerCollection of the specified integer.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodRemove(Int32)

Removes the specified integer from the ListBox::IntegerCollection.

System_CAPS_pubmethodRemoveAt(Int32)

Removes the integer at the specified index from the ListBox::IntegerCollection.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable::GetEnumerator()

Retrieves an enumeration of all the integers in the ListBox::IntegerCollection.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList::Add(Object^)

This API supports the product infrastructure and is not intended to be used directly from your code. Adds a tab stop to the collection.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList::Clear()

This API supports the product infrastructure and is not intended to be used directly from your code. Clears all the tab stops from the collection.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList::Contains(Object^)

This API supports the product infrastructure and is not intended to be used directly from your code. Determines whether the specified tab stop is in the collection.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList::IndexOf(Object^)

This API supports the product infrastructure and is not intended to be used directly from your code. Returns the index of the specified tab stop in the collection.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList::Insert(Int32, Object^)

Inserts an item into the collection at a specified index.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList::Remove(Object^)

Removes the first occurrence of an item from the collection.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList::RemoveAt(Int32)

Removes the item at a specified index.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyICollection::IsSynchronized

This API supports the product infrastructure and is not intended to be used directly from your code. Gets a value indicating whether access to the collection is synchronized (thread safe).

System_CAPS_pubinterfaceSystem_CAPS_privpropertyICollection::SyncRoot

This API supports the product infrastructure and is not intended to be used directly from your code. Gets an object that can be used to synchronize access to the collection of controls.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIList::IsFixedSize

This API supports the product infrastructure and is not intended to be used directly from your code. Gets a value indicating whether the collection has a fixed size.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIList::IsReadOnly

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

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIList::Item[Int32]

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the tab stop at the specified index.

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType<TResult>()

Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.)

ListBox::IntegerCollection is a sorted collection to which items are appended by using the Add and AddRange methods. Duplicate values are removed.

The ListBox::IntegerCollection is used mainly by the CustomTabOffsets property.

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft