HtmlFieldSetElement Class
https://html.spec.whatwg.org/multipage/form-elements.html#htmlfieldsetelement
public sealed class HtmlFieldSetElement : HtmlElement- Inheritance
HtmlElementHtmlFieldSetElement
Properties
| Name | Description |
|---|---|
| Disabled | Gets or sets a value indicating whether the element has the disabled content attribute. |
| Elements | https://html.spec.whatwg.org/multipage/form-elements.html#dom-fieldset-elements: the listed elements that are descendants. |
| Form | Gets the form owner of the element, or null when it has none. |
| Name | Gets or sets the value of the name content attribute. |
| Type | Gets the type of the control, always fieldset. |
| ValidationMessage | Gets the error message that would be shown to the user if the element is invalid, or an empty string. |
| Validity | Gets the ValidityState object that describes the validity of the element. |
| WillValidate | Gets a value indicating whether the element is a candidate for constraint validation. |
Disabled
HtmlElements.g.csGets or sets a value indicating whether the element has the disabled content attribute.
public bool Disabled { get; set; }Property value
See also
Elements
SimpleControls.cshttps://html.spec.whatwg.org/multipage/form-elements.html#dom-fieldset-elements: the listed elements that are descendants.
public HtmlCollection Elements { get; }Gets the form owner of the element, or null when it has none.
public HtmlFormElement? Form { get; }Gets or sets the value of the name content attribute.
public string Name { get; set; }Property value
See also
ValidationMessage
FormControlMembers.csGets the error message that would be shown to the user if the element is invalid, or an empty string.
public string ValidationMessage { get; }Validity
FormControlMembers.csGets the ValidityState object that describes the validity of the element.
public ValidityState Validity { get; }WillValidate
FormControlMembers.csGets a value indicating whether the element is a candidate for constraint validation.
public bool WillValidate { get; }Methods
| Name | Description |
|---|---|
| CheckValidity() | Returns whether the element satisfies its constraints, firing an invalid event when it does not. |
| ReportValidity() | Checks whether the element satisfies its constraints, firing an invalid event when it does not. |
| SetCustomValidity(string) | Sets the custom validity error message of the element; an empty string clears the custom error. |
CheckValidity()
FormControlMembers.csReturns whether the element satisfies its constraints, firing an invalid event when it does not.
public bool CheckValidity()ReportValidity()
FormControlMembers.csChecks whether the element satisfies its constraints, firing an invalid event when it does not.
public bool ReportValidity()SetCustomValidity(string)
FormControlMembers.csSets the custom validity error message of the element; an empty string clears the custom error.