Class
HtmlFormControlState
OfficeIMO.Html.Dom
Immutable live form properties, retained separately from authored attributes and text.
Inheritance
- object
- HtmlFormControlState
Remarks
Changing an attribute does not discard these properties. Set FormState to null to return an owned element to attribute-based form semantics. File contents and text selections are not represented by this state.
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Property HtmlElement.FormState
Constructors
public HtmlFormControlState(HtmlFormControlStateKind kind, string? value = null, bool isChecked = false, bool isIndeterminate = false, bool isSelected = false) #Creates validated state for one form element.
Parameters
- kind OfficeIMO.Html.Dom.HtmlFormControlStateKind
- value string? = null
- isChecked bool = false
- isIndeterminate bool = false
- isSelected bool = false
Inherited Methods
Properties
public HtmlFormControlStateKind Kind { get; } #The applicable element kind.
public string? Value { get; } #Current input or textarea value; null for select and option state.
public bool IsChecked { get; } #Current input checkedness, independent of its checked attribute.
public bool IsSelected { get; } #Current option selectedness, independent of its selected attribute.