ListBox.IntegerCollection ListBox.IntegerCollection ListBox.IntegerCollection ListBox.IntegerCollection Class


Represents a collection of integers in a ListBox.

public: ref class ListBox::IntegerCollection : System::Collections::IList
public class ListBox.IntegerCollection : System.Collections.IList
type ListBox.IntegerCollection = class
    interface IList
    interface ICollection
    interface IEnumerable
Public Class ListBox.IntegerCollection
Implements IList


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.


ListBox.IntegerCollection(ListBox) ListBox.IntegerCollection(ListBox) ListBox.IntegerCollection(ListBox) ListBox.IntegerCollection(ListBox)

Initializes a new instance of the ListBox.IntegerCollection class.


Count Count Count Count

Gets the number of selected items in the ListBox.

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Gets or sets the Item[Int32] having the specified index.


Add(Int32) Add(Int32) Add(Int32) Add(Int32)

Adds a unique integer to the collection in sorted order.

AddRange(Int32[]) AddRange(Int32[]) AddRange(Int32[]) AddRange(Int32[])

Adds an array of integers to the collection.

AddRange(ListBox+IntegerCollection) AddRange(ListBox+IntegerCollection) AddRange(ListBox+IntegerCollection) AddRange(ListBox+IntegerCollection)

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

Clear() Clear() Clear() Clear()

Removes all integers from the ListBox.IntegerCollection.

Contains(Int32) Contains(Int32) Contains(Int32) Contains(Int32)

Determines whether the specified integer is in the collection.

CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
IndexOf(Int32) IndexOf(Int32) IndexOf(Int32) IndexOf(Int32)

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

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(Int32) Remove(Int32) Remove(Int32) Remove(Int32)

Removes the specified integer from the ListBox.IntegerCollection.

RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32)

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

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

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

ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

Gets an object that can be used to synchronize access to the collection of controls.

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

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

IList.Add(Object) IList.Add(Object) IList.Add(Object) IList.Add(Object)

Adds a tab stop to the collection.

IList.Clear() IList.Clear() IList.Clear() IList.Clear()

Clears all the tab stops from the collection.

IList.Contains(Object) IList.Contains(Object) IList.Contains(Object) IList.Contains(Object)

Determines whether the specified tab stop is in the collection.

IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object)

Returns the index of the specified tab stop in the collection.

IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object)

Inserts an item into the collection at a specified index.

IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize

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

IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly

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

IList.Item[Int32] IList.Item[Int32] IList.Item[Int32] IList.Item[Int32]

Gets or sets the tab stop at the specified index.

IList.Remove(Object) IList.Remove(Object) IList.Remove(Object) IList.Remove(Object)

Removes the first occurrence of an item from the collection.

IList.RemoveAt(Int32) IList.RemoveAt(Int32) IList.RemoveAt(Int32) IList.RemoveAt(Int32)

Removes the item at a specified index.

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to