Share via


ItemsSourceView.GetAt(Int32) 方法

定義

擷取位於指定索引處的專案。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

public:
 virtual Platform::Object ^ GetAt(int index) = GetAt;
IInspectable GetAt(int const& index);
public object GetAt(int index);
Public Function GetAt (index As Integer) As Object

參數

index
Int32

int

要擷取的項目索引。

傳回

Object

Platform::Object

IInspectable

在指定之索引處的項目。

備註

使用 Count 屬性,確定您正在傳遞有效的 索引

適用於