TextTrackList Class

https://html.spec.whatwg.org/multipage/media.html#texttracklist

Inheritance
EventTarget TextTrackList
Implements

Properties

NameDescription
CountGets the number of tracks in the list.
LengthGets the number of tracks in the list.
OnAddTrackGets or sets the event handler of the addtrack event.
OnChangeGets or sets the event handler of the change event.
OnRemoveTrackGets or sets the event handler of the removetrack event.

Gets the number of tracks in the list.

public int Count { get; }

Property value

int

Gets the number of tracks in the list.

public uint Length { get; }

OnAddTrack

TextTracks.cs

Gets or sets the event handler of the addtrack event.

public Action<Event>? OnAddTrack { get; set; }

Gets or sets the event handler of the change event.

public Action<Event>? OnChange { get; set; }

OnRemoveTrack

TextTracks.cs

Gets or sets the event handler of the removetrack event.

public Action<Event>? OnRemoveTrack { get; set; }

Indexers

NameDescription
this[int]Gets the track at the given index.
this[uint]Gets the track at the given index, or null when the index is out of range.

ItemAt overloads

this[int]

TextTracks.cs

Gets the track at the given index.

public TextTrack this[int index] { get; }
Parameters
index int
Property value

TextTrack

this[uint]

TextTracks.cs

Gets the track at the given index, or null when the index is out of range.

public TextTrack? this[uint index] { get; }

Methods

NameDescription
GetEnumerator()Returns an enumerator that iterates through the collection.
GetTrackById(string)Returns the first track of the list with the given identifier, or null.
System.Collections.Generic.IReadOnlyList<Meziantou.Framework.WebPlatform.Dom.TextTrack>.get_Item(int)
System.Collections.IEnumerable.GetEnumerator()

GetEnumerator()

TextTracks.cs

Returns an enumerator that iterates through the collection.

public IEnumerator<TextTrack> GetEnumerator()

Returns

IEnumerator<TextTrack> An enumerator that can be used to iterate through the collection.

GetTrackById(string)

TextTracks.cs

Returns the first track of the list with the given identifier, or null.

public TextTrack? GetTrackById(string id)

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

Parameters

index int

Returns

TextTrack

No documentation is available.

System.Collections.IEnumerable.GetEnumerator()

TextTracks.cs
IEnumerator IEnumerable.GetEnumerator()

No documentation is available.