TouchList Class

https://w3c.github.io/touch-events/#touchlist-interface

Implements

Constructors

NameDescription
TouchList(IEnumerable<Touch>)Creates a list that contains the given touch points.

TouchList(IEnumerable<Touch>)

TouchEvents.cs

Creates a list that contains the given touch points.

public TouchList(IEnumerable<Touch> items)

Parameters

items IEnumerable<Touch>

Properties

NameDescription
CountGets the number of touch points in the list (the .NET counterpart of length).
LengthGets the number of touch points in the list.

Gets the number of touch points in the list (the .NET counterpart of length).

public int Count { get; }

Property value

int

Gets the number of touch points in the list.

public uint Length { get; }

Indexers

NameDescription
this[int]Gets the touch point at the given index.

Gets the touch point at the given index.

public Touch this[int index] { get; }

Parameters

index int

Property value

Touch

Methods

NameDescription
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.cs

Returns 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.cs

Returns the touch point at the given index, or null when the index is out of range.

public Touch? Item(uint index)

System.Collections.Generic.IReadOnlyList<Meziantou.Framework.WebPlatform.Dom.Touch>.get_Item(int)

Touch IReadOnlyList<Touch>.get_Item(int index)

Parameters

index int

Returns

Touch

No documentation is available.

System.Collections.IEnumerable.GetEnumerator()

TouchEvents.cs
IEnumerator IEnumerable.GetEnumerator()

No documentation is available.