共用方式為


TouchCollection.FindById Method

Retrieves the touch location matching the specified ID.

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

Syntax

public bool FindById (
         int id,
         out TouchLocation touchLocation
)

Parameters

  • id
    ID of touch location sought.
  • touchLocation
    [OutAttribute] Touch location item matching the specified ID.

Return Value

The return value is true if the item was found; otherwise it is false.

See Also

Reference

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

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7