IItemContainerMapping.IndexFromContainer(DependencyObject) 方法

定義

將索引傳回至具有指定之產生的容器的專案。

public:
 int IndexFromContainer(DependencyObject ^ container);
int IndexFromContainer(DependencyObject const& container);
public int IndexFromContainer(DependencyObject container);
function indexFromContainer(container)
Public Function IndexFromContainer (container As DependencyObject) As Integer

參數

container
DependencyObject

要擷取專案索引的產生的容器。

傳回

Int32

int

對應至指定所產生容器的專案索引,如果 container 找不到 ,則為 -1。

適用於