ItemContainerGenerator.IndexFromContainer(DependencyObject) メソッド

定義

注意

IndexFromContainer は、Windows 8.1後にリリースで変更または使用できない場合があります。 代わりに、 ItemsControl.IndexFromContainer を使用します。

指定された生成されたコンテナーを持つ項目にインデックスを返します。

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

パラメーター

container
DependencyObject

項目インデックスを取得する生成されたコンテナー。

戻り値

Int32

int

指定した生成されたコンテナーに対応する項目のインデックス。

属性

適用対象