共用方式為


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 的索引。

實作

適用於