ListBox.IntegerCollection Класс

Определение

Represents a collection of integers in a ListBox.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
Реализации

Комментарии

ListBox.IntegerCollection — это упорядоченная коллекция, к которой добавляются элементы с помощью методов Add и AddRange.ListBox.IntegerCollection is a sorted collection to which items are appended by using the Add and AddRange methods. Дублирующиеся значения удаляются.Duplicate values are removed.

ListBox.IntegerCollection используется главным образом свойством CustomTabOffsets.The ListBox.IntegerCollection is used mainly by the CustomTabOffsets property.

Конструкторы

ListBox.IntegerCollection(ListBox)

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

Свойства

Count

Gets the number of selected items in the ListBox.Gets the number of selected items in the ListBox.

Item[Int32]

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

Методы

Add(Int32)

Adds a unique integer to the collection in sorted order.Adds a unique integer to the collection in sorted order.

AddRange(Int32[])

Adds an array of integers to the collection.Adds an array of integers to the collection.

AddRange(ListBox+IntegerCollection)

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

Clear()

Removes all integers from the ListBox.IntegerCollection.Removes all integers from the ListBox.IntegerCollection.

Contains(Int32)

Determines whether the specified integer is in the collection.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.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.

(Унаследовано от Object)
GetHashCode()

Служит в качестве хэш-функции по умолчанию.Serves as the default hash function.

(Унаследовано от Object)
GetType()

Возвращает объект Type для текущего экземпляра.Gets the Type of the current instance.

(Унаследовано от Object)
IndexOf(Int32)

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

MemberwiseClone()

Создает неполную копию текущего объекта Object.Creates a shallow copy of the current Object.

(Унаследовано от Object)
Remove(Int32)

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

RemoveAt(Int32)

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

ToString()

Возвращает строку, представляющую текущий объект.Returns a string that represents the current object.

(Унаследовано от Object)

Явные реализации интерфейса

ICollection.IsSynchronized

Gets a value indicating whether access to the collection is synchronized (thread safe).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.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.Retrieves an enumeration of all the integers in the ListBox.IntegerCollection.

IList.Add(Object)

Adds a tab stop to the collection.Adds a tab stop to the collection.

IList.Clear()

Clears all the tab stops from the collection.Clears all the tab stops from the collection.

IList.Contains(Object)

Determines whether the specified tab stop is in the collection.Determines whether the specified tab stop is in the collection.

IList.IndexOf(Object)

Returns the index of the specified tab stop in the collection.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.Inserts an item into the collection at a specified index.

IList.IsFixedSize

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

IList.IsReadOnly

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

IList.Item[Int32]

Gets or sets the tab stop at the specified index.Gets or sets the tab stop at the specified index.

IList.Remove(Object)

Removes the first occurrence of an item from the collection.Removes the first occurrence of an item from the collection.

IList.RemoveAt(Int32)

Removes the item at a specified index.Removes the item at a specified index.

Методы расширения

Cast<TResult>(IEnumerable)

Приводит элементы объекта IEnumerable к заданному типу.Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

Выполняет фильтрацию элементов объекта IEnumerable по заданному типу.Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

Позволяет осуществлять параллельный запрос.Enables parallelization of a query.

AsQueryable(IEnumerable)

Преобразовывает коллекцию IEnumerable в объект IQueryable.Converts an IEnumerable to an IQueryable.

Применяется к