ElementInternals Class
https://html.spec.whatwg.org/multipage/custom-elements.html#elementinternals
public sealed class ElementInternalsProperties
| Name | Description |
|---|---|
| AriaActiveDescendantElement | Gets or sets the default value of the ariaActiveDescendantElement ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaAtomic | Gets or sets the default value of the ariaAtomic ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaAutoComplete | Gets or sets the default value of the ariaAutoComplete ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaBrailleLabel | Gets or sets the default value of the ariaBrailleLabel ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaBrailleRoleDescription | Gets or sets the default value of the ariaBrailleRoleDescription ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaBusy | Gets or sets the default value of the ariaBusy ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaChecked | Gets or sets the default value of the ariaChecked ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaColCount | Gets or sets the default value of the ariaColCount ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaColIndex | Gets or sets the default value of the ariaColIndex ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaColIndexText | Gets or sets the default value of the ariaColIndexText ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaColSpan | Gets or sets the default value of the ariaColSpan ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaControlsElements | Gets or sets the default value of the ariaControlsElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaCurrent | Gets or sets the default value of the ariaCurrent ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaDescribedByElements | Gets or sets the default value of the ariaDescribedByElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaDescription | Gets or sets the default value of the ariaDescription ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaDetailsElements | Gets or sets the default value of the ariaDetailsElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaDisabled | Gets or sets the default value of the ariaDisabled ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaErrorMessageElements | Gets or sets the default value of the ariaErrorMessageElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaExpanded | Gets or sets the default value of the ariaExpanded ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaFlowToElements | Gets or sets the default value of the ariaFlowToElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaHasPopup | Gets or sets the default value of the ariaHasPopup ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaHidden | Gets or sets the default value of the ariaHidden ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaInvalid | Gets or sets the default value of the ariaInvalid ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaKeyShortcuts | Gets or sets the default value of the ariaKeyShortcuts ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaLabel | Gets or sets the default value of the ariaLabel ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaLabelledByElements | Gets or sets the default value of the ariaLabelledByElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaLevel | Gets or sets the default value of the ariaLevel ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaLive | Gets or sets the default value of the ariaLive ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaModal | Gets or sets the default value of the ariaModal ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaMultiLine | Gets or sets the default value of the ariaMultiLine ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaMultiSelectable | Gets or sets the default value of the ariaMultiSelectable ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaOrientation | Gets or sets the default value of the ariaOrientation ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaOwnsElements | Gets or sets the default value of the ariaOwnsElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaPlaceholder | Gets or sets the default value of the ariaPlaceholder ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaPosInSet | Gets or sets the default value of the ariaPosInSet ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaPressed | Gets or sets the default value of the ariaPressed ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaReadOnly | Gets or sets the default value of the ariaReadOnly ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaRelevant | Gets or sets the default value of the ariaRelevant ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaRequired | Gets or sets the default value of the ariaRequired ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaRoleDescription | Gets or sets the default value of the ariaRoleDescription ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaRowCount | Gets or sets the default value of the ariaRowCount ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaRowIndex | Gets or sets the default value of the ariaRowIndex ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaRowIndexText | Gets or sets the default value of the ariaRowIndexText ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaRowSpan | Gets or sets the default value of the ariaRowSpan ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaSelected | Gets or sets the default value of the ariaSelected ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaSetSize | Gets or sets the default value of the ariaSetSize ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaSort | Gets or sets the default value of the ariaSort ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaValueMax | Gets or sets the default value of the ariaValueMax ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaValueMin | Gets or sets the default value of the ariaValueMin ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaValueNow | Gets or sets the default value of the ariaValueNow ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| AriaValueText | Gets or sets the default value of the ariaValueText ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| Form | https://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-form |
| Labels | https://html.spec.whatwg.org/multipage/forms.html#dom-elementinternals-labels |
| Role | Gets or sets the default value of the role ARIA property of the custom element (used when the element has no corresponding ARIA attribute). |
| ShadowRoot | https://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-shadowroot |
| States | https://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-states |
| ValidationMessage | https://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-validationmessage |
| Validity | https://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-validity |
| WillValidate | https://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-willvalidate |
AriaActiveDescendantElement
ElementInternals.g.csGets or sets the default value of the ariaActiveDescendantElement ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public Element? AriaActiveDescendantElement { get; set; }AriaAtomic
ElementInternals.g.csGets or sets the default value of the ariaAtomic ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaAtomic { get; set; }AriaAutoComplete
ElementInternals.g.csGets or sets the default value of the ariaAutoComplete ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaAutoComplete { get; set; }AriaBrailleLabel
ElementInternals.g.csGets or sets the default value of the ariaBrailleLabel ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaBrailleLabel { get; set; }AriaBrailleRoleDescription
ElementInternals.g.csGets or sets the default value of the ariaBrailleRoleDescription ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaBrailleRoleDescription { get; set; }AriaBusy
ElementInternals.g.csGets or sets the default value of the ariaBusy ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaBusy { get; set; }AriaChecked
ElementInternals.g.csGets or sets the default value of the ariaChecked ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaChecked { get; set; }AriaColCount
ElementInternals.g.csGets or sets the default value of the ariaColCount ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaColCount { get; set; }AriaColIndex
ElementInternals.g.csGets or sets the default value of the ariaColIndex ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaColIndex { get; set; }AriaColIndexText
ElementInternals.g.csGets or sets the default value of the ariaColIndexText ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaColIndexText { get; set; }AriaColSpan
ElementInternals.g.csGets or sets the default value of the ariaColSpan ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaColSpan { get; set; }AriaControlsElements
ElementInternals.g.csGets or sets the default value of the ariaControlsElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public IReadOnlyList<Element>? AriaControlsElements { get; set; }Property value
See also
AriaCurrent
ElementInternals.g.csGets or sets the default value of the ariaCurrent ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaCurrent { get; set; }AriaDescribedByElements
ElementInternals.g.csGets or sets the default value of the ariaDescribedByElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public IReadOnlyList<Element>? AriaDescribedByElements { get; set; }Property value
See also
AriaDescription
ElementInternals.g.csGets or sets the default value of the ariaDescription ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaDescription { get; set; }AriaDetailsElements
ElementInternals.g.csGets or sets the default value of the ariaDetailsElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public IReadOnlyList<Element>? AriaDetailsElements { get; set; }Property value
See also
AriaDisabled
ElementInternals.g.csGets or sets the default value of the ariaDisabled ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaDisabled { get; set; }AriaErrorMessageElements
ElementInternals.g.csGets or sets the default value of the ariaErrorMessageElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public IReadOnlyList<Element>? AriaErrorMessageElements { get; set; }AriaExpanded
ElementInternals.g.csGets or sets the default value of the ariaExpanded ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaExpanded { get; set; }AriaFlowToElements
ElementInternals.g.csGets or sets the default value of the ariaFlowToElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public IReadOnlyList<Element>? AriaFlowToElements { get; set; }Property value
See also
AriaHasPopup
ElementInternals.g.csGets or sets the default value of the ariaHasPopup ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaHasPopup { get; set; }AriaHidden
ElementInternals.g.csGets or sets the default value of the ariaHidden ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaHidden { get; set; }AriaInvalid
ElementInternals.g.csGets or sets the default value of the ariaInvalid ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaInvalid { get; set; }AriaKeyShortcuts
ElementInternals.g.csGets or sets the default value of the ariaKeyShortcuts ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaKeyShortcuts { get; set; }AriaLabel
ElementInternals.g.csGets or sets the default value of the ariaLabel ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaLabel { get; set; }AriaLabelledByElements
ElementInternals.g.csGets or sets the default value of the ariaLabelledByElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public IReadOnlyList<Element>? AriaLabelledByElements { get; set; }Property value
See also
AriaLevel
ElementInternals.g.csGets or sets the default value of the ariaLevel ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaLevel { get; set; }AriaLive
ElementInternals.g.csGets or sets the default value of the ariaLive ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaLive { get; set; }AriaModal
ElementInternals.g.csGets or sets the default value of the ariaModal ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaModal { get; set; }AriaMultiLine
ElementInternals.g.csGets or sets the default value of the ariaMultiLine ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaMultiLine { get; set; }AriaMultiSelectable
ElementInternals.g.csGets or sets the default value of the ariaMultiSelectable ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaMultiSelectable { get; set; }AriaOrientation
ElementInternals.g.csGets or sets the default value of the ariaOrientation ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaOrientation { get; set; }AriaOwnsElements
ElementInternals.g.csGets or sets the default value of the ariaOwnsElements ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public IReadOnlyList<Element>? AriaOwnsElements { get; set; }Property value
See also
AriaPlaceholder
ElementInternals.g.csGets or sets the default value of the ariaPlaceholder ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaPlaceholder { get; set; }AriaPosInSet
ElementInternals.g.csGets or sets the default value of the ariaPosInSet ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaPosInSet { get; set; }AriaPressed
ElementInternals.g.csGets or sets the default value of the ariaPressed ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaPressed { get; set; }AriaReadOnly
ElementInternals.g.csGets or sets the default value of the ariaReadOnly ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaReadOnly { get; set; }AriaRelevant
ElementInternals.g.csGets or sets the default value of the ariaRelevant ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaRelevant { get; set; }AriaRequired
ElementInternals.g.csGets or sets the default value of the ariaRequired ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaRequired { get; set; }AriaRoleDescription
ElementInternals.g.csGets or sets the default value of the ariaRoleDescription ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaRoleDescription { get; set; }AriaRowCount
ElementInternals.g.csGets or sets the default value of the ariaRowCount ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaRowCount { get; set; }AriaRowIndex
ElementInternals.g.csGets or sets the default value of the ariaRowIndex ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaRowIndex { get; set; }AriaRowIndexText
ElementInternals.g.csGets or sets the default value of the ariaRowIndexText ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaRowIndexText { get; set; }AriaRowSpan
ElementInternals.g.csGets or sets the default value of the ariaRowSpan ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaRowSpan { get; set; }AriaSelected
ElementInternals.g.csGets or sets the default value of the ariaSelected ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaSelected { get; set; }AriaSetSize
ElementInternals.g.csGets or sets the default value of the ariaSetSize ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaSetSize { get; set; }AriaSort
ElementInternals.g.csGets or sets the default value of the ariaSort ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaSort { get; set; }AriaValueMax
ElementInternals.g.csGets or sets the default value of the ariaValueMax ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaValueMax { get; set; }AriaValueMin
ElementInternals.g.csGets or sets the default value of the ariaValueMin ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaValueMin { get; set; }AriaValueNow
ElementInternals.g.csGets or sets the default value of the ariaValueNow ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaValueNow { get; set; }AriaValueText
ElementInternals.g.csGets or sets the default value of the ariaValueText ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? AriaValueText { get; set; }https://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-form
public HtmlFormElement? Form { get; }Labels
ElementInternals.cshttps://html.spec.whatwg.org/multipage/forms.html#dom-elementinternals-labels
public NodeList Labels { get; }Property value
See also
Gets or sets the default value of the role ARIA property of the custom element (used when the element has no corresponding ARIA attribute).
public string? Role { get; set; }ShadowRoot
ElementInternals.cshttps://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-shadowroot
public ShadowRoot? ShadowRoot { get; }States
ElementInternals.cshttps://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-states
public CustomStateSet States { get; }ValidationMessage
ElementInternals.cshttps://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-validationmessage
public string ValidationMessage { get; }Validity
ElementInternals.cshttps://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-validity
public ValidityState Validity { get; }WillValidate
ElementInternals.cshttps://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-willvalidate
public bool WillValidate { get; }Methods
| Name | Description |
|---|---|
| CheckValidity() | https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-elementinternals-checkvalidity |
| ReportValidity() | https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-elementinternals-reportvalidity |
| SetFormValue(FileOrStringOrFormData?) | https://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-setformvalue |
| SetFormValue(FileOrStringOrFormData?, FileOrStringOrFormData?) | https://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-setformvalue |
| SetValidity(ValidityStateFlags?, string?, HtmlElement?) | https://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-setvalidity |
CheckValidity()
ElementInternals.cshttps://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-elementinternals-checkvalidity
public bool CheckValidity()ReportValidity()
ElementInternals.cshttps://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-elementinternals-reportvalidity
public bool ReportValidity()SetFormValue overloads
SetFormValue(FileOrStringOrFormData?)
ElementInternals.cshttps://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-setformvalue
public void SetFormValue(FileOrStringOrFormData? value)SetFormValue(FileOrStringOrFormData?, FileOrStringOrFormData?)
ElementInternals.cshttps://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-setformvalue
public void SetFormValue(FileOrStringOrFormData? value, FileOrStringOrFormData? state)SetValidity(ValidityStateFlags?, string?, HtmlElement?)
ElementInternals.cshttps://html.spec.whatwg.org/multipage/custom-elements.html#dom-elementinternals-setvalidity
public void SetValidity(ValidityStateFlags? flags = null, string? message = null, HtmlElement? anchor = null)