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
Index
Gets the index of the option element.
[DomName("index")]
int Index { get; }
Property Value
IsDefaultSelected
Gets or sets if the option is selected by default.
[DomName("defaultSelected")]
bool IsDefaultSelected { get; set; }
Property Value
IsDisabled
Gets or sets if the option is enabled or disabled.
[DomName("disabled")]
bool IsDisabled { get; set; }
Property Value
IsSelected
Gets or sets if the option is currently selected.
[DomName("selected")]
bool IsSelected { get; set; }
Property Value
Label
Gets or sets the label.
[DomName("label")]
string? Label { get; set; }
Property Value
Text
Gets or sets the text of the option.
[DomName("text")]
string Text { get; set; }
Property Value
Value
Gets or sets the value.
[DomName("value")]
string Value { get; set; }