IHtmlOptionsCollection
public interface IHtmlOptionsCollection : IHtmlCollection<IHtmlOptionElement>, IEnumerable<IHtmlOptionElement>, IEnumerable
Represents a collection of HTML option elements.
using AngleSharp.Attributes;
using System.Collections;
using System.Collections.Generic;
namespace AngleSharp.Dom.Html
{
[DomName("HTMLOptionsCollection")]
public interface IHtmlOptionsCollection : IHtmlCollection<IHtmlOptionElement>, IEnumerable<IHtmlOptionElement>, IEnumerable
{
[DomName("selectedIndex")]
int SelectedIndex { get; set; }
[DomAccessor(Accessors.Getter)]
IHtmlOptionElement GetOptionAt(int index);
[DomAccessor(Accessors.Setter)]
void SetOptionAt(int index, IHtmlOptionElement option);
[DomName("add")]
void Add(IHtmlOptionElement element, IHtmlElement before = null);
[DomName("add")]
void Add(IHtmlOptionsGroupElement element, IHtmlElement before = null);
[DomName("remove")]
void Remove(int index);
}
}