Compartilhar via


ItemContainerGenerator.IndexFromContainer(DependencyObject) Método

Definição

Observação

IndexFromContainer pode ser alterado ou indisponível para versões após Windows 8.1. Em vez disso, use ItemsControl.IndexFromContainer.

Retorna o índice para o item que tem o contêiner especificado e gerado.

public:
 virtual int IndexFromContainer(DependencyObject ^ container) = IndexFromContainer;
/// [Windows.Foundation.Metadata.Deprecated("IndexFromContainer may be altered or unavailable for releases after Windows 8.1. Instead, use ItemsControl.IndexFromContainer.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
int IndexFromContainer(DependencyObject const& container);
/// [Windows.Foundation.Metadata.Deprecated("IndexFromContainer may be altered or unavailable for releases after Windows 8.1. Instead, use ItemsControl.IndexFromContainer.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
int IndexFromContainer(DependencyObject const& container);
[Windows.Foundation.Metadata.Deprecated("IndexFromContainer may be altered or unavailable for releases after Windows 8.1. Instead, use ItemsControl.IndexFromContainer.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
public int IndexFromContainer(DependencyObject container);
[Windows.Foundation.Metadata.Deprecated("IndexFromContainer may be altered or unavailable for releases after Windows 8.1. Instead, use ItemsControl.IndexFromContainer.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public int IndexFromContainer(DependencyObject container);
function indexFromContainer(container)
Public Function IndexFromContainer (container As DependencyObject) As Integer

Parâmetros

container
DependencyObject

O contêiner gerado para o qual recuperar o índice de item.

Retornos

Int32

int

O índice para o item que corresponde ao contêiner gerado especificado.

Atributos

Aplica-se a