IHtmlCollection<T>
HTMLCollection is an interface representing a generic collection
(array) of elements (in document order) and offers methods and
properties for selecting from the list.
using AngleSharp.Attributes;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace AngleSharp.Dom
{
[System.Runtime.CompilerServices.NullableContext(1)]
[DomName("HTMLCollection")]
public interface IHtmlCollection<[System.Runtime.CompilerServices.Nullable(0)] T> : IEnumerable<T>, IEnumerable where T : IElement
{
[DomName("length")]
int Length { get; }
[DomName("item")]
[DomAccessor(Accessors.Getter)]
T this[int index] { get; }
[System.Runtime.CompilerServices.Nullable(2)]
[DomName("namedItem")]
[DomAccessor(Accessors.Getter)]
T this[string id] {
[return: System.Runtime.CompilerServices.Nullable(2)]
get;
}
}
}