ItemContainerGenerator.ContainerFromIndex(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
注意
在Windows 8.1之後,可能會變更或無法使用 ContainerFromIndex。 請改用 ItemsControl.ContainerFromIndex。
傳回 ItemCollection內指定索引處專案的容器。
public:
virtual DependencyObject ^ ContainerFromIndex(int index) = ContainerFromIndex;
/// [Windows.Foundation.Metadata.Deprecated("ContainerFromIndex may be altered or unavailable for releases after Windows 8.1. Instead, use ItemsControl.ContainerFromIndex.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
DependencyObject ContainerFromIndex(int const& index);
/// [Windows.Foundation.Metadata.Deprecated("ContainerFromIndex may be altered or unavailable for releases after Windows 8.1. Instead, use ItemsControl.ContainerFromIndex.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
DependencyObject ContainerFromIndex(int const& index);
[Windows.Foundation.Metadata.Deprecated("ContainerFromIndex may be altered or unavailable for releases after Windows 8.1. Instead, use ItemsControl.ContainerFromIndex.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
public DependencyObject ContainerFromIndex(int index);
[Windows.Foundation.Metadata.Deprecated("ContainerFromIndex may be altered or unavailable for releases after Windows 8.1. Instead, use ItemsControl.ContainerFromIndex.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public DependencyObject ContainerFromIndex(int index);
function containerFromIndex(index)
Public Function ContainerFromIndex (index As Integer) As DependencyObject
參數
- index
-
Int32
int
要擷取的項目索引。
傳回
如果專案具有容器,則專案位於專案集合內指定索引處專案的容器;否則為 null。
- 屬性