TextTrackList Class
https://html.spec.whatwg.org/multipage/media.html#texttracklist
public sealed class TextTrackList : EventTarget, IEnumerable<TextTrack>, IReadOnlyCollection<TextTrack>, IReadOnlyList<TextTrack>, IEnumerable- Inheritance
EventTargetTextTrackList- Implements
Properties
| Name | Description |
|---|---|
| Count | Gets the number of tracks in the list. |
| Length | Gets the number of tracks in the list. |
| OnAddTrack | Gets or sets the event handler of the addtrack event. |
| OnChange | Gets or sets the event handler of the change event. |
| OnRemoveTrack | Gets or sets the event handler of the removetrack event. |
Count
TextTracks.csLength
TextTracks.csOnAddTrack
TextTracks.csGets or sets the event handler of the addtrack event.
OnChange
TextTracks.csGets or sets the event handler of the change event.
OnRemoveTrack
TextTracks.csGets or sets the event handler of the removetrack event.
Indexers
| Name | Description |
|---|---|
| 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.csthis[uint]
TextTracks.csGets the track at the given index, or null when the index is out of range.
Methods
| Name | Description |
|---|---|
| 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.csReturns 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.csReturns the first track of the list with the given identifier, or null.