Table of Contents

Interface IHtmlOptionElement

Namespace
AngleSharp.Html.Dom
Assembly
AngleSharp.dll

Represents the option HTML element.

[DomName("HTMLOptionElement")]
public interface IHtmlOptionElement : IHtmlElement, IElement, INode, IEventTarget, IMarkupFormattable, IParentNode, IChildNode, INonDocumentTypeChildNode, IGlobalEventHandlers
Inherited Members
Extension Methods

Properties

Form

Gets the associated HTML form element.

[DomName("form")]
IHtmlFormElement? Form { get; }

Property Value

IHtmlFormElement

Index

Gets the index of the option element.

[DomName("index")]
int Index { get; }

Property Value

int

IsDefaultSelected

Gets or sets if the option is selected by default.

[DomName("defaultSelected")]
bool IsDefaultSelected { get; set; }

Property Value

bool

IsDisabled

Gets or sets if the option is enabled or disabled.

[DomName("disabled")]
bool IsDisabled { get; set; }

Property Value

bool

IsSelected

Gets or sets if the option is currently selected.

[DomName("selected")]
bool IsSelected { get; set; }

Property Value

bool

Label

Gets or sets the label.

[DomName("label")]
string? Label { get; set; }

Property Value

string

Text

Gets or sets the text of the option.

[DomName("text")]
string Text { get; set; }

Property Value

string

Value

Gets or sets the value.

[DomName("value")]
string Value { get; set; }

Property Value

string