TouchCollection Members

The following tables list the members exposed by the TouchCollection type.

Public Constructors

Name Description
Public Method TouchCollection Initializes a new instance of the TouchCollection structure with a set of touch locations.

Public Properties

Name Description
Public Property Count Gets the current number of touch locations for the touch screen.
Public Property IsConnected Indicates if the touch screen is available for use.
Public Property IsReadOnly Determines if the touch location array is read-only.
Public Property Item Gets or sets the information of the specified touch location.

Public Methods

Name Description
Public Method Add Adds a TouchLocation to the collection.
Public Method Clear Removes all TouchLocation objects from the collection.
Public Method Contains Checks if the current touch collection contains the specified touch location.
Public Method CopyTo Copies the touch location to the collection at the specified index.
Public Method Equals (Inherited from ValueType.)
Public Method FindById Retrieves the touch location matching the specified ID.
Public Method GetEnumerator Returns an enumerator that iterates through the TouchCollection.
Public Method GetHashCode (Inherited from ValueType.)
Public Method GetType (Inherited from Object.)
Public Method IndexOf Determines the index of a TouchLocation in the TouchCollection.
Public Method Insert Inserts a new TouchLocation into the TouchCollection at a specified index.
Public Method Remove Removes the specified TouchLocation from the TouchCollection.
Public Method RemoveAt Removes a TouchLocation at the specified index in the TouchCollection.
Public Method ToString (Inherited from ValueType.)

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)

See Also

Reference

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