HtmlOptionElement Class
https://html.spec.whatwg.org/multipage/form-elements.html#htmloptionelement
public sealed class HtmlOptionElement : HtmlElement- Inheritance
HtmlElementHtmlOptionElement
Properties
| Name | Description |
|---|---|
| DefaultSelected | Gets or sets a value indicating whether the element has the selected content attribute. |
| Disabled | Gets or sets a value indicating whether the element has the disabled content attribute. |
| Form | https://html.spec.whatwg.org/multipage/form-elements.html#dom-option-form |
| Index | https://html.spec.whatwg.org/multipage/form-elements.html#concept-option-index |
| Label | Gets or sets the value of the label content attribute. |
| Selected | https://html.spec.whatwg.org/multipage/form-elements.html#dom-option-selected |
| Text | https://html.spec.whatwg.org/multipage/form-elements.html#dom-option-text |
| Value | Gets or sets the value of the value content attribute. |
DefaultSelected
HtmlElements.g.csGets or sets a value indicating whether the element has the selected content attribute.
public bool DefaultSelected { get; set; }Property value
See also
Disabled
HtmlElements.g.csGets or sets a value indicating whether the element has the disabled content attribute.
public bool Disabled { get; set; }Property value
See also
https://html.spec.whatwg.org/multipage/form-elements.html#dom-option-form
public HtmlFormElement? Form { get; }Index
SelectElements.cshttps://html.spec.whatwg.org/multipage/form-elements.html#concept-option-index
public int Index { get; }Label
HtmlElements.g.csGets or sets the value of the label content attribute.
public string Label { get; set; }Property value
See also
Selected
SelectElements.cshttps://html.spec.whatwg.org/multipage/form-elements.html#dom-option-selected
public bool Selected { get; set; }Property value
See also
https://html.spec.whatwg.org/multipage/form-elements.html#dom-option-text
public string Text { get; set; }Property value
See also
Value
HtmlElements.g.csGets or sets the value of the value content attribute.
public string Value { get; set; }Property value
See also
Methods
| Name | Description |
|---|---|
| Create(Document, string, string?, bool, bool) | The Option() legacy factory function (https://html.spec.whatwg.org/multipage/form-elements.html#dom-option). |