ItemCollection.GetItemAt(Int32) Метод
Определение
Возвращает элемент в указанный основанный на нуле индекс в данном представлении.Returns the item at the specified zero-based index in this view.
public:
override System::Object ^ GetItemAt(int index);
public override object GetItemAt (int index);
override this.GetItemAt : int -> obj
Public Overrides Function GetItemAt (index As Integer) As Object
Параметры
- index
- Int32
Отсчитываемый от нуля индекс, по которому расположен элемент.The zero-based index at which the item is located.
Возвращаемое значение
Элемент с заданным индексом (начиная с нуля) в данном представлении.The item at the specified zero-based index in this view.
Исключения
index
выходит за пределы диапазона.index
is out of range.
Коллекция не инициализирована или привязка на ItemsSource представлена значением null
.The collection is uninitialized or the binding on ItemsSource supplied a null
value.
Комментарии
Этот метод вычисляет индекс с любым критерием сортировки, фильтрации или группирования, установленным для представления с помощью SortDescriptions Filter свойства или.This method evaluates the index with any sorting, filtering, or grouping criteria that are set on the view using the SortDescriptions or Filter property.