AngleSharp by Florian Rappl

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

.NET API 886,784 bytes

 HTMLSelectElement

Represents the select element.
public enum SelectType

An enumeration with possible select types.

public bool IsMultiple { get; set; }

Gets the multiple HTML attribute, whichindicates whether multiple items can be selected.

public bool IsRequired { get; set; }

Gets or sets if the field is required.

public IHtmlOptionElement this[int index] { get; set; }

Gets or sets an option element.

public int Length { get; }

Gets the number of option elements in this select element.

Gets the set of option elements contained by this element.

public int SelectedIndex { get; }

Gets the index of the first selected option element.

Gets the set of options that are selected.

public int Size { get; set; }

Gets or sets the size of the element.

public string Type { get; }

Gets the form control's type.

public string Value { get; set; }

Gets or sets the value of this form control, that is, of the first selected option.

Creates a new HTML select element.

public void AddOption(IHtmlOptionElement element, IHtmlElement before = null)

Adds the element to the options collection.

public void AddOption(IHtmlOptionsGroupElement element, IHtmlElement before = null)

Adds the element to the options collection.

public void RemoveOptionAt(int index)

Removes the option with the given index from the collection.