IItemContainerGenerator.IndexFromGeneratorPosition Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Returns the index that maps to the specified GeneratorPosition.
Namespace: System.Windows.Controls.Primitives
Assembly: System.Windows (in System.Windows.dll)
Syntax
Function IndexFromGeneratorPosition ( _
position As GeneratorPosition _
) As Integer
int IndexFromGeneratorPosition(
GeneratorPosition position
)
Parameters
- position
Type: System.Windows.Controls.Primitives..::.GeneratorPosition
The index of desired item.
The GeneratorPosition for the desired index.
Return Value
Type: System..::.Int32
An Int32 that is the index which maps to the specified GeneratorPosition.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone