AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.9.9.1" />

.NET API 1,224,704 bytes

 IHtmlCollection<T>

public interface IHtmlCollection<T> : IEnumerable<T>, IEnumerable where T : IElement
HTMLCollection is an interface representing a generic collection (array) of elements (in document order) and offers methods and properties for selecting from the list.
T this[int index] { get; }

Gets the specific node at the given zero-based index into the list.

T this[string id] { get; }

Gets the specific node whose ID or, as a fallback, name matches the string specified by name. Matching by name is only done as a last resort, only in HTML, and only if the referenced element supports the name attribute.

int Length { get; }

Gets the number of items in the collection.