BindingListCollectionView.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 超出範圍。

備註

這個方法會使用檢視上設定的任何 SortDescriptionsFilter 屬性來評估索引。

適用於