ItemContainerGenerator.IItemContainerGenerator.IndexFromGeneratorPosition 方法

定义

返回映射到指定 GeneratorPosition 的索引。

 virtual int System.Windows.Controls.Primitives.IItemContainerGenerator.IndexFromGeneratorPosition(System::Windows::Controls::Primitives::GeneratorPosition position) = System::Windows::Controls::Primitives::IItemContainerGenerator::IndexFromGeneratorPosition;
int IItemContainerGenerator.IndexFromGeneratorPosition (System.Windows.Controls.Primitives.GeneratorPosition position);
abstract member System.Windows.Controls.Primitives.IItemContainerGenerator.IndexFromGeneratorPosition : System.Windows.Controls.Primitives.GeneratorPosition -> int
override this.System.Windows.Controls.Primitives.IItemContainerGenerator.IndexFromGeneratorPosition : System.Windows.Controls.Primitives.GeneratorPosition -> int
Function IndexFromGeneratorPosition (position As GeneratorPosition) As Integer Implements IItemContainerGenerator.IndexFromGeneratorPosition

参数

position
GeneratorPosition

所需项的索引。

返回

一个 Int32,它是映射到指定 GeneratorPosition 的索引。

实现

适用于