AngleSharp by Florian Rappl

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

.NET API 1,229,312 bytes

 IHtmlSelectElement

Represents the select HTML element.
bool Autofocus { get; set; }

Gets or sets the autofocus HTML attribute, which indicates whether the control should have input focus when the page loads.

Gets the associated HTML form element.

bool IsDisabled { get; set; }

Gets or sets if the button is enabled or disabled.

bool IsMultiple { get; set; }

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

bool IsRequired { get; set; }

Gets or sets if the field is required.

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

Gets or sets an HTML option element at the specified index.

INodeList Labels { get; }

Gets the list of assigned labels.

int Length { get; }

Gets the number of option elements in this select element.

string Name { get; set; }

Gets or sets the name of the element.

Gets the set of option elements contained by this element.

int SelectedIndex { get; }

Gets the index of the first selected option element.

Gets the set of options that are selected.

int Size { get; set; }

Gets or sets the display size of the element.

string Type { get; }

Gets the type of input element (select).

string Value { get; set; }

Gets or sets the value.

void AddOption(IHtmlOptionElement element, IHtmlElement before = null)

Adds an option element to the options collection.

void AddOption(IHtmlOptionsGroupElement element, IHtmlElement before = null)

Adds an options group element to the options collection.

void RemoveOptionAt(int index)

Removes an element from the options collection.