Partilhar via


TouchCollection.Contains Method

Checks if the current touch collection contains the specified touch location.

Syntax

'Declaration
Public Function Contains ( _
         item As TouchLocation _
) As Boolean 
public bool Contains (
         TouchLocation item
)
public:
bool Contains(
         TouchLocation item
)

Parameters

  • item
    Type: TouchLocation
    Touch location to be checked against the current collection.

Return Value

Type: Boolean
The value is true if the item is present in the collection; otherwise it is false.

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