Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

HtmlFormControlState

Namespace OfficeIMO.Html.Dom
Assembly OfficeIMO.Html.Core
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

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Constructors

public HtmlFormControlState(HtmlFormControlStateKind kind, String value = null, Boolean isChecked = false, Boolean isIndeterminate = false, Boolean isSelected = false) #

Creates validated state for one form element.

Parameters

kind OfficeIMO.Html.Dom.HtmlFormControlStateKind requiredposition: 0
value System.String = null optionalposition: 1
isChecked System.Boolean = false optionalposition: 2
isIndeterminate System.Boolean = false optionalposition: 3
isSelected System.Boolean = false optionalposition: 4

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

Current input checkedness, independent of its checked attribute.

public Boolean IsIndeterminate { get; } #

Current input indeterminate state.

public Boolean IsSelected { get; } #

Current option selectedness, independent of its selected attribute.