TouchCollection.IndexOf Method

Determines the index of a TouchLocation in the TouchCollection.

Syntax

'Declaration
Public Function IndexOf ( _
         item As TouchLocation _
) As Integer 
public int IndexOf (
         TouchLocation item
)
public:
int IndexOf(
         TouchLocation item
)

Parameters

Return Value

Type: Int32
The index of the specified touch location; -1 if the touch location could not be found.

Requirements

Namespace: Microsoft.Xna.Framework.Input.Touch

Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

See Also

Reference

TouchCollection Structure
TouchCollection Members
Microsoft.Xna.Framework.Input.Touch Namespace

Platforms

Windows Phone