HtmlElement Class

https://html.spec.whatwg.org/multipage/dom.html#htmlelement

public class HtmlElement : Element
Inheritance
Element HtmlElement

Properties

NameDescription
AccessKeyGets or sets the value of the accesskey content attribute.
AccessKeyLabelhttps://html.spec.whatwg.org/multipage/interaction.html#dom-accesskeylabel: the key combination of the assigned access key of the element (e.g. Alt+Shift+B), or the empty string.
AttributeStyleMapGets the typed object model map of the style attribute of the element.
AutocapitalizeGets or sets the value of the autocapitalize content attribute.
Autocorrecthttps://html.spec.whatwg.org/multipage/interaction.html#dom-autocorrect
AutofocusGets or sets a value indicating whether the element has the autofocus content attribute.
ContainerTimingGets or sets the containertiming attribute: the identifier of the container timing entries of the element, which makes it a container root.
ContainerTimingIgnoreGets or sets a value indicating whether the element has the containertimingignore attribute: the paints of the element and of its subtree are not reported to the container roots of its ancestors.
ContentEditablehttps://html.spec.whatwg.org/multipage/interaction.html#dom-contenteditable
CustomElementGets the object created by the .NET CustomElementConstructor of the element, or null.
DatasetGets the data-* custom data attributes of the element as a string map.
DirGets or sets the value of the dir content attribute, limited to the known values (the canonical keyword, or the default value).
Draggablehttps://html.spec.whatwg.org/multipage/dnd.html#dom-draggable
EnterKeyHintGets or sets the value of the enterkeyhint content attribute, limited to the known values (the canonical keyword, or the default value).
HeadingOffsetGets or sets the value of the headingoffset content attribute.
HeadingResetGets or sets a value indicating whether the element has the headingreset content attribute.
Hiddenhttps://html.spec.whatwg.org/multipage/interaction.html#dom-hidden
InertGets or sets a value indicating whether the element has the inert content attribute.
InnerTexthttps://html.spec.whatwg.org/multipage/dom.html#dom-innertext: the rendered text of the element (see RenderedText), or its descendant text content when it is not being rendered.
InputModeGets or sets the value of the inputmode content attribute, limited to the known values (the canonical keyword, or the default value).
IsContentEditablehttps://html.spec.whatwg.org/multipage/interaction.html#dom-iscontenteditable
LangGets or sets the value of the lang content attribute.
NonceGets or sets the cryptographic nonce used by the Content Security Policy checks of the element.
OffsetHeightGets the height of the border box (https://drafts.csswg.org/cssom-view/#dom-htmlelement-offsetheight): see HtmlElement.OffsetWidth.
OffsetLeftGets the horizontal offset of the border box relative to the HtmlElement.OffsetParent (https://drafts.csswg.org/cssom-view/#dom-htmlelement-offsetleft): see HtmlElement.OffsetTop.
OffsetParentGets the element the offsets are relative to (https://drafts.csswg.org/cssom-view/#dom-htmlelement-offsetparent): the nearest positioned ancestor, the body element, or a table, td or th ancestor of a static element.
OffsetTopGets the vertical offset of the border box relative to the HtmlElement.OffsetParent (https://drafts.csswg.org/cssom-view/#dom-htmlelement-offsettop): the distance from the top padding edge of the first box of the offset parent to the top border edge of the first box of the element, or from the top of the initial containing block when there is no offset parent, ignoring the transforms and the scroll positions, divided by the effective zoom of the element. 0 for the body element and an element without box.
OffsetWidthGets the width of the border box (https://drafts.csswg.org/cssom-view/#dom-htmlelement-offsetwidth): the width of the bounding box of the border boxes of the fragments of the principal box of the element (e.g. the lines of an inline box), ignoring the transforms, divided by the effective zoom of the element, or 0 when it has no box.
OnAbortGets or sets the event handler of the abort event (the onabort event handler attribute).
OnAnimationCancelGets or sets the event handler of the animationcancel event (the onanimationcancel event handler attribute).
OnAnimationEndGets or sets the event handler of the animationend event (the onanimationend event handler attribute).
OnAnimationIterationGets or sets the event handler of the animationiteration event (the onanimationiteration event handler attribute).
OnAnimationStartGets or sets the event handler of the animationstart event (the onanimationstart event handler attribute).
OnAuxClickGets or sets the event handler of the auxclick event (the onauxclick event handler attribute).
OnBeforeInputGets or sets the event handler of the beforeinput event (the onbeforeinput event handler attribute).
OnBeforeMatchGets or sets the event handler of the beforematch event (the onbeforematch event handler attribute).
OnBeforeToggleGets or sets the event handler of the beforetoggle event (the onbeforetoggle event handler attribute).
OnBlurGets or sets the event handler of the blur event (the onblur event handler attribute).
OnCanPlayGets or sets the event handler of the canplay event (the oncanplay event handler attribute).
OnCanPlayThroughGets or sets the event handler of the canplaythrough event (the oncanplaythrough event handler attribute).
OnCancelGets or sets the event handler of the cancel event (the oncancel event handler attribute).
OnChangeGets or sets the event handler of the change event (the onchange event handler attribute).
OnClickGets or sets the event handler of the click event (the onclick event handler attribute).
OnCloseGets or sets the event handler of the close event (the onclose event handler attribute).
OnCommandGets or sets the event handler of the command event (the oncommand event handler attribute).
OnContentVisibilityAutoStateChangeGets or sets the event handler of the contentvisibilityautostatechange event (the oncontentvisibilityautostatechange event handler attribute).
OnContextMenuGets or sets the event handler of the contextmenu event (the oncontextmenu event handler attribute).
OnContextRestoredGets or sets the event handler of the contextrestored event (the oncontextrestored event handler attribute).
OnContextlostGets or sets the event handler of the contextlost event (the oncontextlost event handler attribute).
OnCopyGets or sets the event handler of the copy event (the oncopy event handler attribute).
OnCueChangeGets or sets the event handler of the cuechange event (the oncuechange event handler attribute).
OnCutGets or sets the event handler of the cut event (the oncut event handler attribute).
OnDblClickGets or sets the event handler of the dblclick event (the ondblclick event handler attribute).
OnDragGets or sets the event handler of the drag event (the ondrag event handler attribute).
OnDragEndGets or sets the event handler of the dragend event (the ondragend event handler attribute).
OnDragEnterGets or sets the event handler of the dragenter event (the ondragenter event handler attribute).
OnDragLeaveGets or sets the event handler of the dragleave event (the ondragleave event handler attribute).
OnDragOverGets or sets the event handler of the dragover event (the ondragover event handler attribute).
OnDragStartGets or sets the event handler of the dragstart event (the ondragstart event handler attribute).
OnDropGets or sets the event handler of the drop event (the ondrop event handler attribute).
OnDurationChangeGets or sets the event handler of the durationchange event (the ondurationchange event handler attribute).
OnEmptiedGets or sets the event handler of the emptied event (the onemptied event handler attribute).
OnEndedGets or sets the event handler of the ended event (the onended event handler attribute).
OnErrorGets or sets the event handler of the error event (the onerror event handler attribute).
OnFocusGets or sets the event handler of the focus event (the onfocus event handler attribute).
OnFormDataGets or sets the event handler of the formdata event (the onformdata event handler attribute).
OnGotPointerCaptureGets or sets the event handler of the gotpointercapture event (the ongotpointercapture event handler attribute).
OnInputGets or sets the event handler of the input event (the oninput event handler attribute).
OnInvalidGets or sets the event handler of the invalid event (the oninvalid event handler attribute).
OnKeyDownGets or sets the event handler of the keydown event (the onkeydown event handler attribute).
OnKeyPressGets or sets the event handler of the keypress event (the onkeypress event handler attribute).
OnKeyUpGets or sets the event handler of the keyup event (the onkeyup event handler attribute).
OnLoadGets or sets the event handler of the load event (the onload event handler attribute).
OnLoadStartGets or sets the event handler of the loadstart event (the onloadstart event handler attribute).
OnLoadedDataGets or sets the event handler of the loadeddata event (the onloadeddata event handler attribute).
OnLoadedMetadataGets or sets the event handler of the loadedmetadata event (the onloadedmetadata event handler attribute).
OnLostPointerCaptureGets or sets the event handler of the lostpointercapture event (the onlostpointercapture event handler attribute).
OnMouseDownGets or sets the event handler of the mousedown event (the onmousedown event handler attribute).
OnMouseEnterGets or sets the event handler of the mouseenter event (the onmouseenter event handler attribute).
OnMouseLeaveGets or sets the event handler of the mouseleave event (the onmouseleave event handler attribute).
OnMouseMoveGets or sets the event handler of the mousemove event (the onmousemove event handler attribute).
OnMouseOutGets or sets the event handler of the mouseout event (the onmouseout event handler attribute).
OnMouseOverGets or sets the event handler of the mouseover event (the onmouseover event handler attribute).
OnMouseUpGets or sets the event handler of the mouseup event (the onmouseup event handler attribute).
OnPasteGets or sets the event handler of the paste event (the onpaste event handler attribute).
OnPauseGets or sets the event handler of the pause event (the onpause event handler attribute).
OnPlayGets or sets the event handler of the play event (the onplay event handler attribute).
OnPlayingGets or sets the event handler of the playing event (the onplaying event handler attribute).
OnPointerCancelGets or sets the event handler of the pointercancel event (the onpointercancel event handler attribute).
OnPointerDownGets or sets the event handler of the pointerdown event (the onpointerdown event handler attribute).
OnPointerEnterGets or sets the event handler of the pointerenter event (the onpointerenter event handler attribute).
OnPointerLeaveGets or sets the event handler of the pointerleave event (the onpointerleave event handler attribute).
OnPointerMoveGets or sets the event handler of the pointermove event (the onpointermove event handler attribute).
OnPointerOutGets or sets the event handler of the pointerout event (the onpointerout event handler attribute).
OnPointerOverGets or sets the event handler of the pointerover event (the onpointerover event handler attribute).
OnPointerRawUpdateGets or sets the event handler of the pointerrawupdate event (the onpointerrawupdate event handler attribute).
OnPointerUpGets or sets the event handler of the pointerup event (the onpointerup event handler attribute).
OnProgressGets or sets the event handler of the progress event (the onprogress event handler attribute).
OnRateChangeGets or sets the event handler of the ratechange event (the onratechange event handler attribute).
OnResetGets or sets the event handler of the reset event (the onreset event handler attribute).
OnResizeGets or sets the event handler of the resize event (the onresize event handler attribute).
OnScrollGets or sets the event handler of the scroll event (the onscroll event handler attribute).
OnScrollEndGets or sets the event handler of the scrollend event (the onscrollend event handler attribute).
OnScrollSnapChangeGets or sets the event handler of the scrollsnapchange event (the onscrollsnapchange event handler attribute).
OnScrollSnapChangingGets or sets the event handler of the scrollsnapchanging event (the onscrollsnapchanging event handler attribute).
OnSecurityPolicyViolationGets or sets the event handler of the securitypolicyviolation event (the onsecuritypolicyviolation event handler attribute).
OnSeekedGets or sets the event handler of the seeked event (the onseeked event handler attribute).
OnSeekingGets or sets the event handler of the seeking event (the onseeking event handler attribute).
OnSelectGets or sets the event handler of the select event (the onselect event handler attribute).
OnSelectStartGets or sets the event handler of the selectstart event (the onselectstart event handler attribute).
OnSelectionChangeGets or sets the event handler of the selectionchange event (the onselectionchange event handler attribute).
OnSlotChangeGets or sets the event handler of the slotchange event (the onslotchange event handler attribute).
OnStalledGets or sets the event handler of the stalled event (the onstalled event handler attribute).
OnSubmitGets or sets the event handler of the submit event (the onsubmit event handler attribute).
OnSuspendGets or sets the event handler of the suspend event (the onsuspend event handler attribute).
OnTimeUpdateGets or sets the event handler of the timeupdate event (the ontimeupdate event handler attribute).
OnToggleGets or sets the event handler of the toggle event (the ontoggle event handler attribute).
OnTransitionCancelGets or sets the event handler of the transitioncancel event (the ontransitioncancel event handler attribute).
OnTransitionEndGets or sets the event handler of the transitionend event (the ontransitionend event handler attribute).
OnTransitionRunGets or sets the event handler of the transitionrun event (the ontransitionrun event handler attribute).
OnTransitionStartGets or sets the event handler of the transitionstart event (the ontransitionstart event handler attribute).
OnVolumeChangeGets or sets the event handler of the volumechange event (the onvolumechange event handler attribute).
OnWaitingGets or sets the event handler of the waiting event (the onwaiting event handler attribute).
OnWebkitAnimationEndGets or sets the event handler of the webkitanimationend event (the onwebkitanimationend event handler attribute).
OnWebkitAnimationIterationGets or sets the event handler of the webkitanimationiteration event (the onwebkitanimationiteration event handler attribute).
OnWebkitAnimationStartGets or sets the event handler of the webkitanimationstart event (the onwebkitanimationstart event handler attribute).
OnWebkitTransitionEndGets or sets the event handler of the webkittransitionend event (the onwebkittransitionend event handler attribute).
OnWheelGets or sets the event handler of the wheel event (the onwheel event handler attribute).
OuterTexthttps://html.spec.whatwg.org/multipage/dom.html#dom-outertext
PopoverGets or sets the value of the popover content attribute, limited to the known values (the canonical keyword, or the default value).
ScrollParentGets the nearest ancestor that is a scroll container (https://drafts.csswg.org/cssom-view/#dom-htmlelement-scrollparent): the containing blocks are approximated by the flat tree ancestors (the positioned ancestors for the absolutely positioned elements), as there is no layout.
Spellcheckhttps://html.spec.whatwg.org/multipage/interaction.html#dom-spellcheck: the default behavior of elements is to inherit the state of the nearest ancestor, and to check the spelling when no ancestor specifies it.
StyleGets the object that represents the style attribute of the element as a CSS declaration block.
TabIndexGets or sets the value of the tabindex content attribute.
TitleGets or sets the value of the title content attribute.
Translatehttps://html.spec.whatwg.org/multipage/dom.html#dom-translate
VirtualKeyboardPolicyGets or sets the virtualkeyboardpolicy content attribute (https://w3c.github.io/virtual-keyboard/#the-virtualkeyboardpolicy-attribute): auto, manual, or the empty string when it is missing or invalid.
WritingSuggestionsGets or sets the value of the writingsuggestions content attribute.

Gets or sets the value of the accesskey content attribute.

public string AccessKey { get; set; }

https://html.spec.whatwg.org/multipage/interaction.html#dom-accesskeylabel: the key combination of the assigned access key of the element (e.g. Alt+Shift+B), or the empty string.

public string AccessKeyLabel { get; }

AttributeStyleMap

ElementCSSInlineStyle.cs

Gets the typed object model map of the style attribute of the element.

public StylePropertyMap AttributeStyleMap { get; }

Autocapitalize

HtmlElements.g.cs

Gets or sets the value of the autocapitalize content attribute.

public string Autocapitalize { get; set; }

https://html.spec.whatwg.org/multipage/interaction.html#dom-autocorrect

public bool Autocorrect { get; set; }

Gets or sets a value indicating whether the element has the autofocus content attribute.

public bool Autofocus { get; set; }

ContainerTiming

ContainerTiming.cs

Gets or sets the containertiming attribute: the identifier of the container timing entries of the element, which makes it a container root.

public string ContainerTiming { get; set; }

ContainerTimingIgnore

ContainerTiming.cs

Gets or sets a value indicating whether the element has the containertimingignore attribute: the paints of the element and of its subtree are not reported to the container roots of its ancestors.

public bool ContainerTimingIgnore { get; set; }

https://html.spec.whatwg.org/multipage/interaction.html#dom-contenteditable

public string ContentEditable { get; set; }

Gets the object created by the .NET CustomElementConstructor of the element, or null.

public CustomElement? CustomElement { get; }

Property value

CustomElement?

Gets the data-* custom data attributes of the element as a string map.

public DomStringMap Dataset { get; }

Gets or sets the value of the dir content attribute, limited to the known values (the canonical keyword, or the default value).

public string Dir { get; set; }

https://html.spec.whatwg.org/multipage/dnd.html#dom-draggable

public bool Draggable { get; set; }

EnterKeyHint

HtmlElements.g.cs

Gets or sets the value of the enterkeyhint content attribute, limited to the known values (the canonical keyword, or the default value).

public string EnterKeyHint { get; set; }

HeadingOffset

HtmlElements.g.cs

Gets or sets the value of the headingoffset content attribute.

public uint HeadingOffset { get; set; }

HeadingReset

HtmlElements.g.cs

Gets or sets a value indicating whether the element has the headingreset content attribute.

public bool HeadingReset { get; set; }

https://html.spec.whatwg.org/multipage/interaction.html#dom-hidden

public BooleanOrDoubleOrString? Hidden { get; set; }

Gets or sets a value indicating whether the element has the inert content attribute.

public bool Inert { get; set; }

https://html.spec.whatwg.org/multipage/dom.html#dom-innertext: the rendered text of the element (see RenderedText), or its descendant text content when it is not being rendered.

public string InnerText { get; set; }

Gets or sets the value of the inputmode content attribute, limited to the known values (the canonical keyword, or the default value).

public string InputMode { get; set; }

https://html.spec.whatwg.org/multipage/interaction.html#dom-iscontenteditable

public bool IsContentEditable { get; }

Gets or sets the value of the lang content attribute.

public string Lang { get; set; }

Gets or sets the cryptographic nonce used by the Content Security Policy checks of the element.

public string Nonce { get; set; }

Gets the height of the border box (https://drafts.csswg.org/cssom-view/#dom-htmlelement-offsetheight): see HtmlElement.OffsetWidth.

public int OffsetHeight { get; }

Gets the horizontal offset of the border box relative to the HtmlElement.OffsetParent (https://drafts.csswg.org/cssom-view/#dom-htmlelement-offsetleft): see HtmlElement.OffsetTop.

public int OffsetLeft { get; }

Gets the element the offsets are relative to (https://drafts.csswg.org/cssom-view/#dom-htmlelement-offsetparent): the nearest positioned ancestor, the body element, or a table, td or th ancestor of a static element.

public Element? OffsetParent { get; }

Gets the vertical offset of the border box relative to the HtmlElement.OffsetParent (https://drafts.csswg.org/cssom-view/#dom-htmlelement-offsettop): the distance from the top padding edge of the first box of the offset parent to the top border edge of the first box of the element, or from the top of the initial containing block when there is no offset parent, ignoring the transforms and the scroll positions, divided by the effective zoom of the element. 0 for the body element and an element without box.

public int OffsetTop { get; }

Gets the width of the border box (https://drafts.csswg.org/cssom-view/#dom-htmlelement-offsetwidth): the width of the bounding box of the border boxes of the fragments of the principal box of the element (e.g. the lines of an inline box), ignoring the transforms, divided by the effective zoom of the element, or 0 when it has no box.

public int OffsetWidth { get; }

Gets or sets the event handler of the abort event (the onabort event handler attribute).

public Action<Event>? OnAbort { get; set; }

OnAnimationCancel

HtmlElements.g.cs

Gets or sets the event handler of the animationcancel event (the onanimationcancel event handler attribute).

public Action<Event>? OnAnimationCancel { get; set; }

OnAnimationEnd

HtmlElements.g.cs

Gets or sets the event handler of the animationend event (the onanimationend event handler attribute).

public Action<Event>? OnAnimationEnd { get; set; }

OnAnimationIteration

HtmlElements.g.cs

Gets or sets the event handler of the animationiteration event (the onanimationiteration event handler attribute).

public Action<Event>? OnAnimationIteration { get; set; }

OnAnimationStart

HtmlElements.g.cs

Gets or sets the event handler of the animationstart event (the onanimationstart event handler attribute).

public Action<Event>? OnAnimationStart { get; set; }

Gets or sets the event handler of the auxclick event (the onauxclick event handler attribute).

public Action<Event>? OnAuxClick { get; set; }

OnBeforeInput

HtmlElements.g.cs

Gets or sets the event handler of the beforeinput event (the onbeforeinput event handler attribute).

public Action<Event>? OnBeforeInput { get; set; }

OnBeforeMatch

HtmlElements.g.cs

Gets or sets the event handler of the beforematch event (the onbeforematch event handler attribute).

public Action<Event>? OnBeforeMatch { get; set; }

OnBeforeToggle

HtmlElements.g.cs

Gets or sets the event handler of the beforetoggle event (the onbeforetoggle event handler attribute).

public Action<Event>? OnBeforeToggle { get; set; }

Gets or sets the event handler of the blur event (the onblur event handler attribute).

public Action<Event>? OnBlur { get; set; }

Gets or sets the event handler of the canplay event (the oncanplay event handler attribute).

public Action<Event>? OnCanPlay { get; set; }

OnCanPlayThrough

HtmlElements.g.cs

Gets or sets the event handler of the canplaythrough event (the oncanplaythrough event handler attribute).

public Action<Event>? OnCanPlayThrough { get; set; }

Gets or sets the event handler of the cancel event (the oncancel event handler attribute).

public Action<Event>? OnCancel { get; set; }

Gets or sets the event handler of the change event (the onchange event handler attribute).

public Action<Event>? OnChange { get; set; }

Gets or sets the event handler of the click event (the onclick event handler attribute).

public Action<Event>? OnClick { get; set; }

Gets or sets the event handler of the close event (the onclose event handler attribute).

public Action<Event>? OnClose { get; set; }

Gets or sets the event handler of the command event (the oncommand event handler attribute).

public Action<Event>? OnCommand { get; set; }

OnContentVisibilityAutoStateChange

HtmlElements.g.cs
  • Experimental (WEBPLATEXP0010)

Gets or sets the event handler of the contentvisibilityautostatechange event (the oncontentvisibilityautostatechange event handler attribute).

[Experimental("WEBPLATEXP0010", UrlFormat = "https://github.com/meziantou/Meziantou.Framework/blob/main/src/Meziantou.Framework.WebPlatform/docs/experimental-apis.md#{0}")]
public Action<Event>? OnContentVisibilityAutoStateChange { get; set; }

OnContextMenu

HtmlElements.g.cs

Gets or sets the event handler of the contextmenu event (the oncontextmenu event handler attribute).

public Action<Event>? OnContextMenu { get; set; }

OnContextRestored

HtmlElements.g.cs

Gets or sets the event handler of the contextrestored event (the oncontextrestored event handler attribute).

public Action<Event>? OnContextRestored { get; set; }

OnContextlost

HtmlElements.g.cs

Gets or sets the event handler of the contextlost event (the oncontextlost event handler attribute).

public Action<Event>? OnContextlost { get; set; }

Gets or sets the event handler of the copy event (the oncopy event handler attribute).

public Action<Event>? OnCopy { get; set; }

Gets or sets the event handler of the cuechange event (the oncuechange event handler attribute).

public Action<Event>? OnCueChange { get; set; }

Gets or sets the event handler of the cut event (the oncut event handler attribute).

public Action<Event>? OnCut { get; set; }

Gets or sets the event handler of the dblclick event (the ondblclick event handler attribute).

public Action<Event>? OnDblClick { get; set; }

Gets or sets the event handler of the drag event (the ondrag event handler attribute).

public Action<Event>? OnDrag { get; set; }

Gets or sets the event handler of the dragend event (the ondragend event handler attribute).

public Action<Event>? OnDragEnd { get; set; }

Gets or sets the event handler of the dragenter event (the ondragenter event handler attribute).

public Action<Event>? OnDragEnter { get; set; }

Gets or sets the event handler of the dragleave event (the ondragleave event handler attribute).

public Action<Event>? OnDragLeave { get; set; }

Gets or sets the event handler of the dragover event (the ondragover event handler attribute).

public Action<Event>? OnDragOver { get; set; }

Gets or sets the event handler of the dragstart event (the ondragstart event handler attribute).

public Action<Event>? OnDragStart { get; set; }

Gets or sets the event handler of the drop event (the ondrop event handler attribute).

public Action<Event>? OnDrop { get; set; }

OnDurationChange

HtmlElements.g.cs

Gets or sets the event handler of the durationchange event (the ondurationchange event handler attribute).

public Action<Event>? OnDurationChange { get; set; }

Gets or sets the event handler of the emptied event (the onemptied event handler attribute).

public Action<Event>? OnEmptied { get; set; }

Gets or sets the event handler of the ended event (the onended event handler attribute).

public Action<Event>? OnEnded { get; set; }

Gets or sets the event handler of the error event (the onerror event handler attribute).

public Action<Event>? OnError { get; set; }

Gets or sets the event handler of the focus event (the onfocus event handler attribute).

public Action<Event>? OnFocus { get; set; }

Gets or sets the event handler of the formdata event (the onformdata event handler attribute).

public Action<Event>? OnFormData { get; set; }

OnGotPointerCapture

HtmlElements.g.cs

Gets or sets the event handler of the gotpointercapture event (the ongotpointercapture event handler attribute).

public Action<Event>? OnGotPointerCapture { get; set; }

Gets or sets the event handler of the input event (the oninput event handler attribute).

public Action<Event>? OnInput { get; set; }

Gets or sets the event handler of the invalid event (the oninvalid event handler attribute).

public Action<Event>? OnInvalid { get; set; }

Gets or sets the event handler of the keydown event (the onkeydown event handler attribute).

public Action<Event>? OnKeyDown { get; set; }

Gets or sets the event handler of the keypress event (the onkeypress event handler attribute).

public Action<Event>? OnKeyPress { get; set; }

Gets or sets the event handler of the keyup event (the onkeyup event handler attribute).

public Action<Event>? OnKeyUp { get; set; }

Gets or sets the event handler of the load event (the onload event handler attribute).

public Action<Event>? OnLoad { get; set; }

Gets or sets the event handler of the loadstart event (the onloadstart event handler attribute).

public Action<Event>? OnLoadStart { get; set; }

OnLoadedData

HtmlElements.g.cs

Gets or sets the event handler of the loadeddata event (the onloadeddata event handler attribute).

public Action<Event>? OnLoadedData { get; set; }

OnLoadedMetadata

HtmlElements.g.cs

Gets or sets the event handler of the loadedmetadata event (the onloadedmetadata event handler attribute).

public Action<Event>? OnLoadedMetadata { get; set; }

OnLostPointerCapture

HtmlElements.g.cs

Gets or sets the event handler of the lostpointercapture event (the onlostpointercapture event handler attribute).

public Action<Event>? OnLostPointerCapture { get; set; }

Gets or sets the event handler of the mousedown event (the onmousedown event handler attribute).

public Action<Event>? OnMouseDown { get; set; }

OnMouseEnter

HtmlElements.g.cs

Gets or sets the event handler of the mouseenter event (the onmouseenter event handler attribute).

public Action<Event>? OnMouseEnter { get; set; }

OnMouseLeave

HtmlElements.g.cs

Gets or sets the event handler of the mouseleave event (the onmouseleave event handler attribute).

public Action<Event>? OnMouseLeave { get; set; }

Gets or sets the event handler of the mousemove event (the onmousemove event handler attribute).

public Action<Event>? OnMouseMove { get; set; }

Gets or sets the event handler of the mouseout event (the onmouseout event handler attribute).

public Action<Event>? OnMouseOut { get; set; }

Gets or sets the event handler of the mouseover event (the onmouseover event handler attribute).

public Action<Event>? OnMouseOver { get; set; }

Gets or sets the event handler of the mouseup event (the onmouseup event handler attribute).

public Action<Event>? OnMouseUp { get; set; }

Gets or sets the event handler of the paste event (the onpaste event handler attribute).

public Action<Event>? OnPaste { get; set; }

Gets or sets the event handler of the pause event (the onpause event handler attribute).

public Action<Event>? OnPause { get; set; }

Gets or sets the event handler of the play event (the onplay event handler attribute).

public Action<Event>? OnPlay { get; set; }

Gets or sets the event handler of the playing event (the onplaying event handler attribute).

public Action<Event>? OnPlaying { get; set; }

OnPointerCancel

HtmlElements.g.cs

Gets or sets the event handler of the pointercancel event (the onpointercancel event handler attribute).

public Action<Event>? OnPointerCancel { get; set; }

OnPointerDown

HtmlElements.g.cs

Gets or sets the event handler of the pointerdown event (the onpointerdown event handler attribute).

public Action<Event>? OnPointerDown { get; set; }

OnPointerEnter

HtmlElements.g.cs

Gets or sets the event handler of the pointerenter event (the onpointerenter event handler attribute).

public Action<Event>? OnPointerEnter { get; set; }

OnPointerLeave

HtmlElements.g.cs

Gets or sets the event handler of the pointerleave event (the onpointerleave event handler attribute).

public Action<Event>? OnPointerLeave { get; set; }

OnPointerMove

HtmlElements.g.cs

Gets or sets the event handler of the pointermove event (the onpointermove event handler attribute).

public Action<Event>? OnPointerMove { get; set; }

OnPointerOut

HtmlElements.g.cs

Gets or sets the event handler of the pointerout event (the onpointerout event handler attribute).

public Action<Event>? OnPointerOut { get; set; }

OnPointerOver

HtmlElements.g.cs

Gets or sets the event handler of the pointerover event (the onpointerover event handler attribute).

public Action<Event>? OnPointerOver { get; set; }

OnPointerRawUpdate

HtmlElements.g.cs

Gets or sets the event handler of the pointerrawupdate event (the onpointerrawupdate event handler attribute).

public Action<Event>? OnPointerRawUpdate { get; set; }

Gets or sets the event handler of the pointerup event (the onpointerup event handler attribute).

public Action<Event>? OnPointerUp { get; set; }

Gets or sets the event handler of the progress event (the onprogress event handler attribute).

public Action<Event>? OnProgress { get; set; }

OnRateChange

HtmlElements.g.cs

Gets or sets the event handler of the ratechange event (the onratechange event handler attribute).

public Action<Event>? OnRateChange { get; set; }

Gets or sets the event handler of the reset event (the onreset event handler attribute).

public Action<Event>? OnReset { get; set; }

Gets or sets the event handler of the resize event (the onresize event handler attribute).

public Action<Event>? OnResize { get; set; }

Gets or sets the event handler of the scroll event (the onscroll event handler attribute).

public Action<Event>? OnScroll { get; set; }

Gets or sets the event handler of the scrollend event (the onscrollend event handler attribute).

public Action<Event>? OnScrollEnd { get; set; }

OnScrollSnapChange

HtmlElements.g.cs

Gets or sets the event handler of the scrollsnapchange event (the onscrollsnapchange event handler attribute).

public Action<Event>? OnScrollSnapChange { get; set; }

OnScrollSnapChanging

HtmlElements.g.cs

Gets or sets the event handler of the scrollsnapchanging event (the onscrollsnapchanging event handler attribute).

public Action<Event>? OnScrollSnapChanging { get; set; }

OnSecurityPolicyViolation

HtmlElements.g.cs

Gets or sets the event handler of the securitypolicyviolation event (the onsecuritypolicyviolation event handler attribute).

public Action<Event>? OnSecurityPolicyViolation { get; set; }

Gets or sets the event handler of the seeked event (the onseeked event handler attribute).

public Action<Event>? OnSeeked { get; set; }

Gets or sets the event handler of the seeking event (the onseeking event handler attribute).

public Action<Event>? OnSeeking { get; set; }

Gets or sets the event handler of the select event (the onselect event handler attribute).

public Action<Event>? OnSelect { get; set; }

OnSelectStart

HtmlElements.g.cs

Gets or sets the event handler of the selectstart event (the onselectstart event handler attribute).

public Action<Event>? OnSelectStart { get; set; }

OnSelectionChange

HtmlElements.g.cs

Gets or sets the event handler of the selectionchange event (the onselectionchange event handler attribute).

public Action<Event>? OnSelectionChange { get; set; }

OnSlotChange

HtmlElements.g.cs

Gets or sets the event handler of the slotchange event (the onslotchange event handler attribute).

public Action<Event>? OnSlotChange { get; set; }

Gets or sets the event handler of the stalled event (the onstalled event handler attribute).

public Action<Event>? OnStalled { get; set; }

Gets or sets the event handler of the submit event (the onsubmit event handler attribute).

public Action<Event>? OnSubmit { get; set; }

Gets or sets the event handler of the suspend event (the onsuspend event handler attribute).

public Action<Event>? OnSuspend { get; set; }

OnTimeUpdate

HtmlElements.g.cs

Gets or sets the event handler of the timeupdate event (the ontimeupdate event handler attribute).

public Action<Event>? OnTimeUpdate { get; set; }

Gets or sets the event handler of the toggle event (the ontoggle event handler attribute).

public Action<Event>? OnToggle { get; set; }

OnTransitionCancel

HtmlElements.g.cs

Gets or sets the event handler of the transitioncancel event (the ontransitioncancel event handler attribute).

public Action<Event>? OnTransitionCancel { get; set; }

OnTransitionEnd

HtmlElements.g.cs

Gets or sets the event handler of the transitionend event (the ontransitionend event handler attribute).

public Action<Event>? OnTransitionEnd { get; set; }

OnTransitionRun

HtmlElements.g.cs

Gets or sets the event handler of the transitionrun event (the ontransitionrun event handler attribute).

public Action<Event>? OnTransitionRun { get; set; }

OnTransitionStart

HtmlElements.g.cs

Gets or sets the event handler of the transitionstart event (the ontransitionstart event handler attribute).

public Action<Event>? OnTransitionStart { get; set; }

OnVolumeChange

HtmlElements.g.cs

Gets or sets the event handler of the volumechange event (the onvolumechange event handler attribute).

public Action<Event>? OnVolumeChange { get; set; }

Gets or sets the event handler of the waiting event (the onwaiting event handler attribute).

public Action<Event>? OnWaiting { get; set; }

OnWebkitAnimationEnd

HtmlElements.g.cs

Gets or sets the event handler of the webkitanimationend event (the onwebkitanimationend event handler attribute).

public Action<Event>? OnWebkitAnimationEnd { get; set; }

OnWebkitAnimationIteration

HtmlElements.g.cs

Gets or sets the event handler of the webkitanimationiteration event (the onwebkitanimationiteration event handler attribute).

public Action<Event>? OnWebkitAnimationIteration { get; set; }

OnWebkitAnimationStart

HtmlElements.g.cs

Gets or sets the event handler of the webkitanimationstart event (the onwebkitanimationstart event handler attribute).

public Action<Event>? OnWebkitAnimationStart { get; set; }

OnWebkitTransitionEnd

HtmlElements.g.cs

Gets or sets the event handler of the webkittransitionend event (the onwebkittransitionend event handler attribute).

public Action<Event>? OnWebkitTransitionEnd { get; set; }

Gets or sets the event handler of the wheel event (the onwheel event handler attribute).

public Action<Event>? OnWheel { get; set; }

https://html.spec.whatwg.org/multipage/dom.html#dom-outertext

public string OuterText { get; set; }

Gets or sets the value of the popover content attribute, limited to the known values (the canonical keyword, or the default value).

public string? Popover { get; set; }

Gets the nearest ancestor that is a scroll container (https://drafts.csswg.org/cssom-view/#dom-htmlelement-scrollparent): the containing blocks are approximated by the flat tree ancestors (the positioned ancestors for the absolutely positioned elements), as there is no layout.

public Element? ScrollParent { get; }

https://html.spec.whatwg.org/multipage/interaction.html#dom-spellcheck: the default behavior of elements is to inherit the state of the nearest ancestor, and to check the spelling when no ancestor specifies it.

public bool Spellcheck { get; set; }

Gets the object that represents the style attribute of the element as a CSS declaration block.

public CssStyleProperties Style { get; }

Gets or sets the value of the tabindex content attribute.

public int TabIndex { get; set; }

Gets or sets the value of the title content attribute.

public string Title { get; set; }

https://html.spec.whatwg.org/multipage/dom.html#dom-translate

public bool Translate { get; set; }

VirtualKeyboardPolicy

VirtualKeyboard.cs

Gets or sets the virtualkeyboardpolicy content attribute (https://w3c.github.io/virtual-keyboard/#the-virtualkeyboardpolicy-attribute): auto, manual, or the empty string when it is missing or invalid.

public string VirtualKeyboardPolicy { get; set; }

WritingSuggestions

HtmlElements.g.cs

Gets or sets the value of the writingsuggestions content attribute.

public string WritingSuggestions { get; set; }

Methods

NameDescription
AttachInternals()https://html.spec.whatwg.org/multipage/custom-elements.html#dom-attachinternals
Blur()https://html.spec.whatwg.org/multipage/interaction.html#dom-blur: runs the unfocusing steps for the element (the viewport is focused).
Click()https://html.spec.whatwg.org/multipage/interaction.html#dom-click
Focus(FocusOptions?)https://html.spec.whatwg.org/multipage/interaction.html#dom-focus: runs the focusing steps for the element (see Document.ActiveElement). Nothing is scrolled.
HidePopover()https://html.spec.whatwg.org/multipage/popover.html#dom-hidepopover
ShowPopover(ShowPopoverOptions?)https://html.spec.whatwg.org/multipage/popover.html#dom-showpopover
TogglePopover(TogglePopoverOptions?)https://html.spec.whatwg.org/multipage/popover.html#dom-togglepopover
TogglePopover(bool)https://html.spec.whatwg.org/multipage/popover.html#dom-togglepopover

https://html.spec.whatwg.org/multipage/custom-elements.html#dom-attachinternals

public ElementInternals AttachInternals()

https://html.spec.whatwg.org/multipage/interaction.html#dom-blur: runs the unfocusing steps for the element (the viewport is focused).

public void Blur()

https://html.spec.whatwg.org/multipage/interaction.html#dom-click

public void Click()

Focus(FocusOptions?)

HTMLOrSVGOrMathMLElement.cs

https://html.spec.whatwg.org/multipage/interaction.html#dom-focus: runs the focusing steps for the element (see Document.ActiveElement). Nothing is scrolled.

public void Focus(FocusOptions? options = null)

https://html.spec.whatwg.org/multipage/popover.html#dom-hidepopover

public void HidePopover()

ShowPopover(ShowPopoverOptions?)

HtmlElement.Popover.cs

https://html.spec.whatwg.org/multipage/popover.html#dom-showpopover

public void ShowPopover(ShowPopoverOptions? options = null)

TogglePopover overloads

TogglePopover(TogglePopoverOptions?)

HtmlElement.Popover.cs

https://html.spec.whatwg.org/multipage/popover.html#dom-togglepopover

public bool TogglePopover(TogglePopoverOptions? options = null)

TogglePopover(bool)

HtmlElement.Popover.cs

https://html.spec.whatwg.org/multipage/popover.html#dom-togglepopover

public bool TogglePopover(bool force)