TouchList Class
https://w3c.github.io/touch-events/#touchlist-interface
public sealed class TouchList : IEnumerable<Touch>, IReadOnlyCollection<Touch>, IReadOnlyList<Touch>, IEnumerableConstructors
| Name | Description |
|---|---|
| TouchList(IEnumerable<Touch>) | Creates a list that contains the given touch points. |
TouchList(IEnumerable<Touch>)
TouchEvents.csCreates a list that contains the given touch points.
public TouchList(IEnumerable<Touch> items)Parameters
itemsIEnumerable<Touch>
Properties
| Name | Description |
|---|---|
| Count | Gets the number of touch points in the list (the .NET counterpart of length). |
| Length | Gets the number of touch points in the list. |
Count
TouchEvents.csLength
TouchEvents.csGets the number of touch points in the list.
public uint Length { get; }Indexers
| Name | Description |
|---|---|
| this[int] | Gets the touch point at the given index. |
this[int]
TouchEvents.csMethods
| Name | Description |
|---|---|
| GetEnumerator() | Returns an enumerator that iterates through the collection. |
| Item(uint) | Returns the touch point at the given index, or null when the index is out of range. |
| System.Collections.Generic.IReadOnlyList<Meziantou.Framework.WebPlatform.Dom.Touch>.get_Item(int) | |
| System.Collections.IEnumerable.GetEnumerator() |
GetEnumerator()
TouchEvents.csReturns an enumerator that iterates through the collection.
public IEnumerator<Touch> GetEnumerator()Returns
IEnumerator<Touch> An enumerator that can be used to iterate through the collection.
Item(uint)
TouchEvents.csReturns the touch point at the given index, or null when the index is out of range.