ItemCollection.GetItemAt(Int32) 方法

定義

傳回此檢視中位於指定之以零起始的索引的項目。

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

項目所在的以零起始的索引。

傳回

Object

位於此集合之以零起始的索引的項目。

例外狀況

index 超出範圍。

集合未初始化,或 ItemsSource 上的繫結提供 null 值。

備註

這個方法會使用 或 屬性在檢視 SortDescriptions Filter 上設定的任何排序、篩選或群組準則來評估索引。

適用於