AngleSharp by Florian Rappl

<PackageReference Include="AngleSharp" Version="0.9.0" />

.NET API 1,206,784 bytes

 HtmlFormControlElement

Represents the base class for all HTML form control elements.
public bool Autofocus { get; set; }

Gets or sets the autofocus HTML attribute, which indicates whether the control should have input focus when the page loads.

public IHtmlFormElement Form { get; }

Gets the associated HTML form element.

public bool IsDisabled { get; set; }

Gets or sets if the element is enabled or disabled.

public INodeList Labels { get; }

Gets the list of assigned labels.

public string Name { get; set; }

Gets or sets the value of the name attribute.

public bool SupportsLabels { get; }

Gets if labels are supported.

public string ValidationMessage { get; }

Gets the current validation message.

public IValidityState Validity { get; }

Gets the current validation state of the current element.

public bool WillValidate { get; }

Gets a value if the current element validates.

public HtmlFormControlElement(Document owner, string name, string prefix, NodeFlags flags = 0)

protected abstract bool CanBeValidated()

protected virtual void Check(ValidityState state)

Checks the form control for validity.

public bool CheckValidity()

Checks the validity of the current element.

protected virtual bool IsFieldsetDisabled()

public void SetCustomValidity(string error)

Sets a custom validation error. If this is not the empty string, then the element is suffering from a custom validation error.