ListBox.IntegerCollection Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- Inheritance
-
ListBox.IntegerCollection
- Implements
Remarks
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.
Constructors
ListBox.IntegerCollection(ListBox) |
Initializes a new instance of the ListBox.IntegerCollection class. |
Properties
Count |
Gets the number of selected items in the ListBox. |
Item[Int32] |
Gets or sets the element at the specified index. |
Methods
Add(Int32) |
Adds a unique integer to the collection in sorted order. |
AddRange(Int32[]) |
Adds an array of integers to the collection. |
AddRange(ListBox+IntegerCollection) |
Adds the contents of an existing ListBox.IntegerCollection to another collection. |
Clear() |
Removes all integers from the ListBox.IntegerCollection. |
Contains(Int32) |
Determines whether the specified integer is in the collection. |
CopyTo(Array, Int32) |
Copies the entire ListBox.IntegerCollection into an existing array of integers at a specified location within the array. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
IndexOf(Int32) |
Retrieves the index within the ListBox.IntegerCollection of the specified integer. |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
Remove(Int32) |
Removes the specified integer from the ListBox.IntegerCollection. |
RemoveAt(Int32) |
Removes the integer at the specified index from the ListBox.IntegerCollection. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Explicit Interface Implementations
ICollection.IsSynchronized |
Gets a value indicating whether access to the collection is synchronized (thread safe). |
ICollection.SyncRoot |
Gets an object that can be used to synchronize access to the collection of controls. |
IEnumerable.GetEnumerator() |
Retrieves an enumeration of all the integers in the ListBox.IntegerCollection. |
IList.Add(Object) |
Adds a tab stop to the collection. |
IList.Clear() |
Clears all the tab stops from the collection. |
IList.Contains(Object) |
Determines whether the specified tab stop is in the collection. |
IList.IndexOf(Object) |
Returns the index of the specified tab stop in the collection. |
IList.Insert(Int32, Object) |
Inserts an item into the collection at a specified index. |
IList.IsFixedSize |
Gets a value indicating whether the collection has a fixed size. |
IList.IsReadOnly |
Gets a value indicating whether the collection is read-only. |
IList.Item[Int32] |
Gets or sets the tab stop at the specified index. |
IList.Remove(Object) |
Removes the first occurrence of an item from the collection. |
IList.RemoveAt(Int32) |
Removes the item at a specified index. |
Extension Methods
Cast<TResult>(IEnumerable) |
Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
Enables parallelization of a query. |
AsQueryable(IEnumerable) |
Converts an IEnumerable to an IQueryable. |
Applies to
.NET