Class OptionElement

Class OptionElement

Namespace: Aspose.Html.Forms
Assembly: Aspose.HTML.dll (25.2.0)

The OptionElement represents a wrapper that is associated with the HTMLOptionElement

[ComVisible(true)]
public class OptionElement : FormElement<htmloptionelement>

Inheritance

objectFormElementFormElement<htmloptionelement>OptionElement

Inherited Members

FormElement<htmloptionelement>.HtmlElement, FormElement.ElementType, FormElement.Name, FormElement.Id, FormElement.Value, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

Disabled

The control is unavailable in this context. See the disabled attribute definition in HTML 4.01.

public bool Disabled { get; set; }

Property Value

bool

Label

Option label for use in hierarchical menus. See the label attribute definition in HTML 4.01.

public string Label { get; set; }

Property Value

string

Selected

Represents the current state of the corresponding form control, in an interactive user agent. Changing this attribute changes the state of the form control, but does not change the value of the HTML selected attribute of the element.

public bool Selected { get; set; }

Property Value

bool

Text

This attribute represents the text content of this node and its descendants.

public string Text { get; set; }

Property Value

string

Value

The current form control value. See the value attribute definition in HTML 4.01.

public override string Value { get; set; }

Property Value

string </htmloptionelement></htmloptionelement>