CheckedListBox.CheckedItemCollection.IndexOf(Object) Метод
Определение
Возвращает индекс в коллекцию отмеченных элементов.Returns an index into the collection of checked items.
public:
virtual int IndexOf(System::Object ^ item);
public int IndexOf (object item);
abstract member IndexOf : obj -> int
override this.IndexOf : obj -> int
Public Function IndexOf (item As Object) As Integer
Параметры
- item
- Object
Объект, индекс которого требуется извлечь.The object whose index you want to retrieve. Этот объект должен входить в коллекцию отмеченных элементов.This object must belong to the checked items collection.
Возвращаемое значение
Индекс объекта в коллекции отмеченных элементов или -1, если объект не входит в коллекцию.The index of the object in the checked item collection or -1 if the object is not in the collection. Для получения дополнительных сведений см. примеры в обзоре класса CheckedListBox.CheckedItemCollection.For more information, see the examples in the CheckedListBox.CheckedItemCollection class overview.
Реализации
Комментарии
CheckedItemsКоллекция является подмножеством объектов в Items коллекции, представляющих только отмеченные элементы.The CheckedItems collection is a subset of the objects in the Items collection, representing only items that are checked. Эта коллекция упорядочивается в порядке возрастания.This collection is ordered in ascending order.