Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

HtmlFormControlState

OfficeIMO.Html.Dom

Namespace
OfficeIMO.Html.Dom
Assembly
OfficeIMO.Html.Core
Source revision
56dd0d38e0b5 with working tree changes
Modifiers
sealed

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

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 required
value string? = null optional
isChecked bool = false optional
isIndeterminate bool = false optional
isSelected bool = false optional

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 IsIndeterminate { get; } #

Current input indeterminate state.

public bool IsSelected { get; } #

Current option selectedness, independent of its selected attribute.