IItemContainerGenerator.IndexFromGeneratorPosition(GeneratorPosition) 方法

定义

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

public:
 int IndexFromGeneratorPosition(System::Windows::Controls::Primitives::GeneratorPosition position);
public int IndexFromGeneratorPosition (System.Windows.Controls.Primitives.GeneratorPosition position);
abstract member IndexFromGeneratorPosition : System.Windows.Controls.Primitives.GeneratorPosition -> int
Public Function IndexFromGeneratorPosition (position As GeneratorPosition) As Integer

参数

position
GeneratorPosition

所需项的索引。

所需索引的 GeneratorPosition

返回

是映射到指定 Int32 的索引的 GeneratorPosition

适用于