HtmlElement Class
https://html.spec.whatwg.org/multipage/dom.html#htmlelement
public class HtmlElement : Element- Inheritance
ElementHtmlElement
Properties
| Name | Description |
|---|---|
| AccessKey | Gets or sets the value of the accesskey content attribute. |
| AccessKeyLabel | 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. |
| AttributeStyleMap | Gets the typed object model map of the style attribute of the element. |
| Autocapitalize | Gets or sets the value of the autocapitalize content attribute. |
| Autocorrect | https://html.spec.whatwg.org/multipage/interaction.html#dom-autocorrect |
| Autofocus | Gets or sets a value indicating whether the element has the autofocus content attribute. |
| ContainerTiming | Gets or sets the containertiming attribute: the identifier of the container timing entries of the element, which makes it a container root. |
| ContainerTimingIgnore | 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. |
| ContentEditable | https://html.spec.whatwg.org/multipage/interaction.html#dom-contenteditable |
| CustomElement | Gets the object created by the .NET CustomElementConstructor of the element, or null. |
| Dataset | Gets the data-* custom data attributes of the element as a string map. |
| Dir | Gets or sets the value of the dir content attribute, limited to the known values (the canonical keyword, or the default value). |
| Draggable | https://html.spec.whatwg.org/multipage/dnd.html#dom-draggable |
| EnterKeyHint | Gets or sets the value of the enterkeyhint content attribute, limited to the known values (the canonical keyword, or the default value). |
| HeadingOffset | Gets or sets the value of the headingoffset content attribute. |
| HeadingReset | Gets or sets a value indicating whether the element has the headingreset content attribute. |
| Hidden | https://html.spec.whatwg.org/multipage/interaction.html#dom-hidden |
| Inert | Gets or sets a value indicating whether the element has the inert content attribute. |
| InnerText | 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. |
| InputMode | Gets or sets the value of the inputmode content attribute, limited to the known values (the canonical keyword, or the default value). |
| IsContentEditable | https://html.spec.whatwg.org/multipage/interaction.html#dom-iscontenteditable |
| Lang | Gets or sets the value of the lang content attribute. |
| Nonce | Gets or sets the cryptographic nonce used by the Content Security Policy checks of the element. |
| OffsetHeight | Gets the height of the border box (https://drafts.csswg.org/cssom-view/#dom-htmlelement-offsetheight): see HtmlElement.OffsetWidth. |
| OffsetLeft | 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. |
| OffsetParent | 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. |
| OffsetTop | 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. |
| OffsetWidth | 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. |
| OnAbort | Gets or sets the event handler of the abort event (the onabort event handler attribute). |
| OnAnimationCancel | Gets or sets the event handler of the animationcancel event (the onanimationcancel event handler attribute). |
| OnAnimationEnd | Gets or sets the event handler of the animationend event (the onanimationend event handler attribute). |
| OnAnimationIteration | Gets or sets the event handler of the animationiteration event (the onanimationiteration event handler attribute). |
| OnAnimationStart | Gets or sets the event handler of the animationstart event (the onanimationstart event handler attribute). |
| OnAuxClick | Gets or sets the event handler of the auxclick event (the onauxclick event handler attribute). |
| OnBeforeInput | Gets or sets the event handler of the beforeinput event (the onbeforeinput event handler attribute). |
| OnBeforeMatch | Gets or sets the event handler of the beforematch event (the onbeforematch event handler attribute). |
| OnBeforeToggle | Gets or sets the event handler of the beforetoggle event (the onbeforetoggle event handler attribute). |
| OnBlur | Gets or sets the event handler of the blur event (the onblur event handler attribute). |
| OnCanPlay | Gets or sets the event handler of the canplay event (the oncanplay event handler attribute). |
| OnCanPlayThrough | Gets or sets the event handler of the canplaythrough event (the oncanplaythrough event handler attribute). |
| OnCancel | Gets or sets the event handler of the cancel event (the oncancel event handler attribute). |
| OnChange | Gets or sets the event handler of the change event (the onchange event handler attribute). |
| OnClick | Gets or sets the event handler of the click event (the onclick event handler attribute). |
| OnClose | Gets or sets the event handler of the close event (the onclose event handler attribute). |
| OnCommand | Gets or sets the event handler of the command event (the oncommand event handler attribute). |
| OnContentVisibilityAutoStateChange | Gets or sets the event handler of the contentvisibilityautostatechange event (the oncontentvisibilityautostatechange event handler attribute). |
| OnContextMenu | Gets or sets the event handler of the contextmenu event (the oncontextmenu event handler attribute). |
| OnContextRestored | Gets or sets the event handler of the contextrestored event (the oncontextrestored event handler attribute). |
| OnContextlost | Gets or sets the event handler of the contextlost event (the oncontextlost event handler attribute). |
| OnCopy | Gets or sets the event handler of the copy event (the oncopy event handler attribute). |
| OnCueChange | Gets or sets the event handler of the cuechange event (the oncuechange event handler attribute). |
| OnCut | Gets or sets the event handler of the cut event (the oncut event handler attribute). |
| OnDblClick | Gets or sets the event handler of the dblclick event (the ondblclick event handler attribute). |
| OnDrag | Gets or sets the event handler of the drag event (the ondrag event handler attribute). |
| OnDragEnd | Gets or sets the event handler of the dragend event (the ondragend event handler attribute). |
| OnDragEnter | Gets or sets the event handler of the dragenter event (the ondragenter event handler attribute). |
| OnDragLeave | Gets or sets the event handler of the dragleave event (the ondragleave event handler attribute). |
| OnDragOver | Gets or sets the event handler of the dragover event (the ondragover event handler attribute). |
| OnDragStart | Gets or sets the event handler of the dragstart event (the ondragstart event handler attribute). |
| OnDrop | Gets or sets the event handler of the drop event (the ondrop event handler attribute). |
| OnDurationChange | Gets or sets the event handler of the durationchange event (the ondurationchange event handler attribute). |
| OnEmptied | Gets or sets the event handler of the emptied event (the onemptied event handler attribute). |
| OnEnded | Gets or sets the event handler of the ended event (the onended event handler attribute). |
| OnError | Gets or sets the event handler of the error event (the onerror event handler attribute). |
| OnFocus | Gets or sets the event handler of the focus event (the onfocus event handler attribute). |
| OnFormData | Gets or sets the event handler of the formdata event (the onformdata event handler attribute). |
| OnGotPointerCapture | Gets or sets the event handler of the gotpointercapture event (the ongotpointercapture event handler attribute). |
| OnInput | Gets or sets the event handler of the input event (the oninput event handler attribute). |
| OnInvalid | Gets or sets the event handler of the invalid event (the oninvalid event handler attribute). |
| OnKeyDown | Gets or sets the event handler of the keydown event (the onkeydown event handler attribute). |
| OnKeyPress | Gets or sets the event handler of the keypress event (the onkeypress event handler attribute). |
| OnKeyUp | Gets or sets the event handler of the keyup event (the onkeyup event handler attribute). |
| OnLoad | Gets or sets the event handler of the load event (the onload event handler attribute). |
| OnLoadStart | Gets or sets the event handler of the loadstart event (the onloadstart event handler attribute). |
| OnLoadedData | Gets or sets the event handler of the loadeddata event (the onloadeddata event handler attribute). |
| OnLoadedMetadata | Gets or sets the event handler of the loadedmetadata event (the onloadedmetadata event handler attribute). |
| OnLostPointerCapture | Gets or sets the event handler of the lostpointercapture event (the onlostpointercapture event handler attribute). |
| OnMouseDown | Gets or sets the event handler of the mousedown event (the onmousedown event handler attribute). |
| OnMouseEnter | Gets or sets the event handler of the mouseenter event (the onmouseenter event handler attribute). |
| OnMouseLeave | Gets or sets the event handler of the mouseleave event (the onmouseleave event handler attribute). |
| OnMouseMove | Gets or sets the event handler of the mousemove event (the onmousemove event handler attribute). |
| OnMouseOut | Gets or sets the event handler of the mouseout event (the onmouseout event handler attribute). |
| OnMouseOver | Gets or sets the event handler of the mouseover event (the onmouseover event handler attribute). |
| OnMouseUp | Gets or sets the event handler of the mouseup event (the onmouseup event handler attribute). |
| OnPaste | Gets or sets the event handler of the paste event (the onpaste event handler attribute). |
| OnPause | Gets or sets the event handler of the pause event (the onpause event handler attribute). |
| OnPlay | Gets or sets the event handler of the play event (the onplay event handler attribute). |
| OnPlaying | Gets or sets the event handler of the playing event (the onplaying event handler attribute). |
| OnPointerCancel | Gets or sets the event handler of the pointercancel event (the onpointercancel event handler attribute). |
| OnPointerDown | Gets or sets the event handler of the pointerdown event (the onpointerdown event handler attribute). |
| OnPointerEnter | Gets or sets the event handler of the pointerenter event (the onpointerenter event handler attribute). |
| OnPointerLeave | Gets or sets the event handler of the pointerleave event (the onpointerleave event handler attribute). |
| OnPointerMove | Gets or sets the event handler of the pointermove event (the onpointermove event handler attribute). |
| OnPointerOut | Gets or sets the event handler of the pointerout event (the onpointerout event handler attribute). |
| OnPointerOver | Gets or sets the event handler of the pointerover event (the onpointerover event handler attribute). |
| OnPointerRawUpdate | Gets or sets the event handler of the pointerrawupdate event (the onpointerrawupdate event handler attribute). |
| OnPointerUp | Gets or sets the event handler of the pointerup event (the onpointerup event handler attribute). |
| OnProgress | Gets or sets the event handler of the progress event (the onprogress event handler attribute). |
| OnRateChange | Gets or sets the event handler of the ratechange event (the onratechange event handler attribute). |
| OnReset | Gets or sets the event handler of the reset event (the onreset event handler attribute). |
| OnResize | Gets or sets the event handler of the resize event (the onresize event handler attribute). |
| OnScroll | Gets or sets the event handler of the scroll event (the onscroll event handler attribute). |
| OnScrollEnd | Gets or sets the event handler of the scrollend event (the onscrollend event handler attribute). |
| OnScrollSnapChange | Gets or sets the event handler of the scrollsnapchange event (the onscrollsnapchange event handler attribute). |
| OnScrollSnapChanging | Gets or sets the event handler of the scrollsnapchanging event (the onscrollsnapchanging event handler attribute). |
| OnSecurityPolicyViolation | Gets or sets the event handler of the securitypolicyviolation event (the onsecuritypolicyviolation event handler attribute). |
| OnSeeked | Gets or sets the event handler of the seeked event (the onseeked event handler attribute). |
| OnSeeking | Gets or sets the event handler of the seeking event (the onseeking event handler attribute). |
| OnSelect | Gets or sets the event handler of the select event (the onselect event handler attribute). |
| OnSelectStart | Gets or sets the event handler of the selectstart event (the onselectstart event handler attribute). |
| OnSelectionChange | Gets or sets the event handler of the selectionchange event (the onselectionchange event handler attribute). |
| OnSlotChange | Gets or sets the event handler of the slotchange event (the onslotchange event handler attribute). |
| OnStalled | Gets or sets the event handler of the stalled event (the onstalled event handler attribute). |
| OnSubmit | Gets or sets the event handler of the submit event (the onsubmit event handler attribute). |
| OnSuspend | Gets or sets the event handler of the suspend event (the onsuspend event handler attribute). |
| OnTimeUpdate | Gets or sets the event handler of the timeupdate event (the ontimeupdate event handler attribute). |
| OnToggle | Gets or sets the event handler of the toggle event (the ontoggle event handler attribute). |
| OnTransitionCancel | Gets or sets the event handler of the transitioncancel event (the ontransitioncancel event handler attribute). |
| OnTransitionEnd | Gets or sets the event handler of the transitionend event (the ontransitionend event handler attribute). |
| OnTransitionRun | Gets or sets the event handler of the transitionrun event (the ontransitionrun event handler attribute). |
| OnTransitionStart | Gets or sets the event handler of the transitionstart event (the ontransitionstart event handler attribute). |
| OnVolumeChange | Gets or sets the event handler of the volumechange event (the onvolumechange event handler attribute). |
| OnWaiting | Gets or sets the event handler of the waiting event (the onwaiting event handler attribute). |
| OnWebkitAnimationEnd | Gets or sets the event handler of the webkitanimationend event (the onwebkitanimationend event handler attribute). |
| OnWebkitAnimationIteration | Gets or sets the event handler of the webkitanimationiteration event (the onwebkitanimationiteration event handler attribute). |
| OnWebkitAnimationStart | Gets or sets the event handler of the webkitanimationstart event (the onwebkitanimationstart event handler attribute). |
| OnWebkitTransitionEnd | Gets or sets the event handler of the webkittransitionend event (the onwebkittransitionend event handler attribute). |
| OnWheel | Gets or sets the event handler of the wheel event (the onwheel event handler attribute). |
| OuterText | https://html.spec.whatwg.org/multipage/dom.html#dom-outertext |
| Popover | Gets or sets the value of the popover content attribute, limited to the known values (the canonical keyword, or the default value). |
| ScrollParent | 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. |
| Spellcheck | 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. |
| Style | Gets the object that represents the style attribute of the element as a CSS declaration block. |
| TabIndex | Gets or sets the value of the tabindex content attribute. |
| Title | Gets or sets the value of the title content attribute. |
| Translate | https://html.spec.whatwg.org/multipage/dom.html#dom-translate |
| VirtualKeyboardPolicy | 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. |
| WritingSuggestions | Gets or sets the value of the writingsuggestions content attribute. |
AccessKey
HtmlElements.g.csGets or sets the value of the accesskey content attribute.
public string AccessKey { get; set; }AccessKeyLabel
HtmlElement.Interaction.cshttps://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; }Property value
See also
AttributeStyleMap
ElementCSSInlineStyle.csGets the typed object model map of the style attribute of the element.
public StylePropertyMap AttributeStyleMap { get; }Autocapitalize
HtmlElements.g.csGets or sets the value of the autocapitalize content attribute.
public string Autocapitalize { get; set; }Property value
See also
Autocorrect
HtmlElement.Interaction.cshttps://html.spec.whatwg.org/multipage/interaction.html#dom-autocorrect
public bool Autocorrect { get; set; }Autofocus
HtmlElements.g.csGets or sets a value indicating whether the element has the autofocus content attribute.
public bool Autofocus { get; set; }ContainerTiming
ContainerTiming.csGets 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.csGets 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; }Property value
See also
ContentEditable
HtmlElement.Interaction.cshttps://html.spec.whatwg.org/multipage/interaction.html#dom-contenteditable
public string ContentEditable { get; set; }Property value
See also
CustomElement
HtmlElement.CustomElements.csGets the object created by the .NET CustomElementConstructor of the element, or null.
public CustomElement? CustomElement { get; }Property value
Dataset
HTMLOrSVGOrMathMLElement.csGets 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; }Draggable
HtmlElement.Interaction.cshttps://html.spec.whatwg.org/multipage/dnd.html#dom-draggable
public bool Draggable { get; set; }EnterKeyHint
HtmlElements.g.csGets 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; }Property value
See also
HeadingOffset
HtmlElements.g.csGets or sets the value of the headingoffset content attribute.
public uint HeadingOffset { get; set; }HeadingReset
HtmlElements.g.csGets or sets a value indicating whether the element has the headingreset content attribute.
public bool HeadingReset { get; set; }Hidden
HtmlElement.cshttps://html.spec.whatwg.org/multipage/interaction.html#dom-hidden
public BooleanOrDoubleOrString? Hidden { get; set; }Inert
HtmlElements.g.csGets or sets a value indicating whether the element has the inert content attribute.
public bool Inert { get; set; }InnerText
HtmlElement.Interaction.cshttps://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; }InputMode
HtmlElements.g.csGets 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; }IsContentEditable
HtmlElement.Interaction.cshttps://html.spec.whatwg.org/multipage/interaction.html#dom-iscontenteditable
public bool IsContentEditable { get; }Property value
See also
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; }OffsetHeight
CssomView.Scrolling.csGets the height of the border box (https://drafts.csswg.org/cssom-view/#dom-htmlelement-offsetheight): see HtmlElement.OffsetWidth.
public int OffsetHeight { get; }OffsetLeft
CssomView.Scrolling.csGets 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; }OffsetParent
CssomView.Scrolling.csGets 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; }OffsetTop
CssomView.Scrolling.csGets 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; }OffsetWidth
CssomView.Scrolling.csGets 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; }OnAbort
HtmlElements.g.csGets or sets the event handler of the abort event (the onabort event handler attribute).
Property value
See also
OnAnimationCancel
HtmlElements.g.csGets or sets the event handler of the animationcancel event (the onanimationcancel event handler attribute).
OnAnimationEnd
HtmlElements.g.csGets or sets the event handler of the animationend event (the onanimationend event handler attribute).
OnAnimationIteration
HtmlElements.g.csGets or sets the event handler of the animationiteration event (the onanimationiteration event handler attribute).
OnAnimationStart
HtmlElements.g.csGets or sets the event handler of the animationstart event (the onanimationstart event handler attribute).
OnAuxClick
HtmlElements.g.csGets or sets the event handler of the auxclick event (the onauxclick event handler attribute).
Property value
See also
OnBeforeInput
HtmlElements.g.csGets or sets the event handler of the beforeinput event (the onbeforeinput event handler attribute).
OnBeforeMatch
HtmlElements.g.csGets or sets the event handler of the beforematch event (the onbeforematch event handler attribute).
OnBeforeToggle
HtmlElements.g.csGets or sets the event handler of the beforetoggle event (the onbeforetoggle event handler attribute).
OnBlur
HtmlElements.g.csGets or sets the event handler of the blur event (the onblur event handler attribute).
Property value
See also
OnCanPlay
HtmlElements.g.csGets or sets the event handler of the canplay event (the oncanplay event handler attribute).
Property value
See also
OnCanPlayThrough
HtmlElements.g.csGets or sets the event handler of the canplaythrough event (the oncanplaythrough event handler attribute).
OnCancel
HtmlElements.g.csGets or sets the event handler of the cancel event (the oncancel event handler attribute).
Property value
See also
OnChange
HtmlElements.g.csGets or sets the event handler of the change event (the onchange event handler attribute).
Property value
See also
OnClick
HtmlElements.g.csGets or sets the event handler of the click event (the onclick event handler attribute).
Property value
See also
OnClose
HtmlElements.g.csGets or sets the event handler of the close event (the onclose event handler attribute).
Property value
See also
OnCommand
HtmlElements.g.csGets or sets the event handler of the command event (the oncommand event handler attribute).
Property value
See also
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.csGets or sets the event handler of the contextmenu event (the oncontextmenu event handler attribute).
OnContextRestored
HtmlElements.g.csGets or sets the event handler of the contextrestored event (the oncontextrestored event handler attribute).
OnContextlost
HtmlElements.g.csGets or sets the event handler of the contextlost event (the oncontextlost event handler attribute).
OnCopy
HtmlElements.g.csGets or sets the event handler of the copy event (the oncopy event handler attribute).
Property value
See also
OnCueChange
HtmlElements.g.csGets or sets the event handler of the cuechange event (the oncuechange event handler attribute).
Property value
See also
OnCut
HtmlElements.g.csGets or sets the event handler of the cut event (the oncut event handler attribute).
Property value
See also
OnDblClick
HtmlElements.g.csGets or sets the event handler of the dblclick event (the ondblclick event handler attribute).
Property value
See also
OnDrag
HtmlElements.g.csGets or sets the event handler of the drag event (the ondrag event handler attribute).
Property value
See also
OnDragEnd
HtmlElements.g.csGets or sets the event handler of the dragend event (the ondragend event handler attribute).
Property value
See also
OnDragEnter
HtmlElements.g.csGets or sets the event handler of the dragenter event (the ondragenter event handler attribute).
Property value
See also
OnDragLeave
HtmlElements.g.csGets or sets the event handler of the dragleave event (the ondragleave event handler attribute).
Property value
See also
OnDragOver
HtmlElements.g.csGets or sets the event handler of the dragover event (the ondragover event handler attribute).
Property value
See also
OnDragStart
HtmlElements.g.csGets or sets the event handler of the dragstart event (the ondragstart event handler attribute).
Property value
See also
OnDrop
HtmlElements.g.csGets or sets the event handler of the drop event (the ondrop event handler attribute).
Property value
See also
OnDurationChange
HtmlElements.g.csGets or sets the event handler of the durationchange event (the ondurationchange event handler attribute).
OnEmptied
HtmlElements.g.csGets or sets the event handler of the emptied event (the onemptied event handler attribute).
Property value
See also
OnEnded
HtmlElements.g.csGets or sets the event handler of the ended event (the onended event handler attribute).
Property value
See also
OnError
HtmlElements.g.csGets or sets the event handler of the error event (the onerror event handler attribute).
Property value
See also
OnFocus
HtmlElements.g.csGets or sets the event handler of the focus event (the onfocus event handler attribute).
Property value
See also
OnFormData
HtmlElements.g.csGets or sets the event handler of the formdata event (the onformdata event handler attribute).
Property value
See also
OnGotPointerCapture
HtmlElements.g.csGets or sets the event handler of the gotpointercapture event (the ongotpointercapture event handler attribute).
OnInput
HtmlElements.g.csGets or sets the event handler of the input event (the oninput event handler attribute).
Property value
See also
OnInvalid
HtmlElements.g.csGets or sets the event handler of the invalid event (the oninvalid event handler attribute).
Property value
See also
OnKeyDown
HtmlElements.g.csGets or sets the event handler of the keydown event (the onkeydown event handler attribute).
Property value
See also
OnKeyPress
HtmlElements.g.csGets or sets the event handler of the keypress event (the onkeypress event handler attribute).
Property value
See also
OnKeyUp
HtmlElements.g.csGets or sets the event handler of the keyup event (the onkeyup event handler attribute).
Property value
See also
OnLoad
HtmlElements.g.csGets or sets the event handler of the load event (the onload event handler attribute).
Property value
See also
OnLoadStart
HtmlElements.g.csGets or sets the event handler of the loadstart event (the onloadstart event handler attribute).
Property value
See also
OnLoadedData
HtmlElements.g.csGets or sets the event handler of the loadeddata event (the onloadeddata event handler attribute).
OnLoadedMetadata
HtmlElements.g.csGets or sets the event handler of the loadedmetadata event (the onloadedmetadata event handler attribute).
OnLostPointerCapture
HtmlElements.g.csGets or sets the event handler of the lostpointercapture event (the onlostpointercapture event handler attribute).
OnMouseDown
HtmlElements.g.csGets or sets the event handler of the mousedown event (the onmousedown event handler attribute).
Property value
See also
OnMouseEnter
HtmlElements.g.csGets or sets the event handler of the mouseenter event (the onmouseenter event handler attribute).
OnMouseLeave
HtmlElements.g.csGets or sets the event handler of the mouseleave event (the onmouseleave event handler attribute).
OnMouseMove
HtmlElements.g.csGets or sets the event handler of the mousemove event (the onmousemove event handler attribute).
Property value
See also
OnMouseOut
HtmlElements.g.csGets or sets the event handler of the mouseout event (the onmouseout event handler attribute).
Property value
See also
OnMouseOver
HtmlElements.g.csGets or sets the event handler of the mouseover event (the onmouseover event handler attribute).
Property value
See also
OnMouseUp
HtmlElements.g.csGets or sets the event handler of the mouseup event (the onmouseup event handler attribute).
Property value
See also
OnPaste
HtmlElements.g.csGets or sets the event handler of the paste event (the onpaste event handler attribute).
Property value
See also
OnPause
HtmlElements.g.csGets or sets the event handler of the pause event (the onpause event handler attribute).
Property value
See also
OnPlay
HtmlElements.g.csGets or sets the event handler of the play event (the onplay event handler attribute).
Property value
See also
OnPlaying
HtmlElements.g.csGets or sets the event handler of the playing event (the onplaying event handler attribute).
Property value
See also
OnPointerCancel
HtmlElements.g.csGets or sets the event handler of the pointercancel event (the onpointercancel event handler attribute).
OnPointerDown
HtmlElements.g.csGets or sets the event handler of the pointerdown event (the onpointerdown event handler attribute).
Property value
See also
OnPointerEnter
HtmlElements.g.csGets or sets the event handler of the pointerenter event (the onpointerenter event handler attribute).
OnPointerLeave
HtmlElements.g.csGets or sets the event handler of the pointerleave event (the onpointerleave event handler attribute).
OnPointerMove
HtmlElements.g.csGets or sets the event handler of the pointermove event (the onpointermove event handler attribute).
Property value
See also
OnPointerOut
HtmlElements.g.csGets or sets the event handler of the pointerout event (the onpointerout event handler attribute).
Property value
See also
OnPointerOver
HtmlElements.g.csGets or sets the event handler of the pointerover event (the onpointerover event handler attribute).
Property value
See also
OnPointerRawUpdate
HtmlElements.g.csGets or sets the event handler of the pointerrawupdate event (the onpointerrawupdate event handler attribute).
OnPointerUp
HtmlElements.g.csGets or sets the event handler of the pointerup event (the onpointerup event handler attribute).
Property value
See also
OnProgress
HtmlElements.g.csGets or sets the event handler of the progress event (the onprogress event handler attribute).
Property value
See also
OnRateChange
HtmlElements.g.csGets or sets the event handler of the ratechange event (the onratechange event handler attribute).
OnReset
HtmlElements.g.csGets or sets the event handler of the reset event (the onreset event handler attribute).
Property value
See also
OnResize
HtmlElements.g.csGets or sets the event handler of the resize event (the onresize event handler attribute).
Property value
See also
OnScroll
HtmlElements.g.csGets or sets the event handler of the scroll event (the onscroll event handler attribute).
Property value
See also
OnScrollEnd
HtmlElements.g.csGets or sets the event handler of the scrollend event (the onscrollend event handler attribute).
Property value
See also
OnScrollSnapChange
HtmlElements.g.csGets or sets the event handler of the scrollsnapchange event (the onscrollsnapchange event handler attribute).
OnScrollSnapChanging
HtmlElements.g.csGets or sets the event handler of the scrollsnapchanging event (the onscrollsnapchanging event handler attribute).
OnSecurityPolicyViolation
HtmlElements.g.csGets or sets the event handler of the securitypolicyviolation event (the onsecuritypolicyviolation event handler attribute).
OnSeeked
HtmlElements.g.csGets or sets the event handler of the seeked event (the onseeked event handler attribute).
Property value
See also
OnSeeking
HtmlElements.g.csGets or sets the event handler of the seeking event (the onseeking event handler attribute).
Property value
See also
OnSelect
HtmlElements.g.csGets or sets the event handler of the select event (the onselect event handler attribute).
Property value
See also
OnSelectStart
HtmlElements.g.csGets or sets the event handler of the selectstart event (the onselectstart event handler attribute).
Property value
See also
OnSelectionChange
HtmlElements.g.csGets or sets the event handler of the selectionchange event (the onselectionchange event handler attribute).
OnSlotChange
HtmlElements.g.csGets or sets the event handler of the slotchange event (the onslotchange event handler attribute).
OnStalled
HtmlElements.g.csGets or sets the event handler of the stalled event (the onstalled event handler attribute).
Property value
See also
OnSubmit
HtmlElements.g.csGets or sets the event handler of the submit event (the onsubmit event handler attribute).
Property value
See also
OnSuspend
HtmlElements.g.csGets or sets the event handler of the suspend event (the onsuspend event handler attribute).
Property value
See also
OnTimeUpdate
HtmlElements.g.csGets or sets the event handler of the timeupdate event (the ontimeupdate event handler attribute).
OnToggle
HtmlElements.g.csGets or sets the event handler of the toggle event (the ontoggle event handler attribute).
Property value
See also
OnTransitionCancel
HtmlElements.g.csGets or sets the event handler of the transitioncancel event (the ontransitioncancel event handler attribute).
OnTransitionEnd
HtmlElements.g.csGets or sets the event handler of the transitionend event (the ontransitionend event handler attribute).
OnTransitionRun
HtmlElements.g.csGets or sets the event handler of the transitionrun event (the ontransitionrun event handler attribute).
OnTransitionStart
HtmlElements.g.csGets or sets the event handler of the transitionstart event (the ontransitionstart event handler attribute).
OnVolumeChange
HtmlElements.g.csGets or sets the event handler of the volumechange event (the onvolumechange event handler attribute).
OnWaiting
HtmlElements.g.csGets or sets the event handler of the waiting event (the onwaiting event handler attribute).
Property value
See also
OnWebkitAnimationEnd
HtmlElements.g.csGets or sets the event handler of the webkitanimationend event (the onwebkitanimationend event handler attribute).
OnWebkitAnimationIteration
HtmlElements.g.csGets or sets the event handler of the webkitanimationiteration event (the onwebkitanimationiteration event handler attribute).
OnWebkitAnimationStart
HtmlElements.g.csGets or sets the event handler of the webkitanimationstart event (the onwebkitanimationstart event handler attribute).
OnWebkitTransitionEnd
HtmlElements.g.csGets or sets the event handler of the webkittransitionend event (the onwebkittransitionend event handler attribute).
OnWheel
HtmlElements.g.csGets or sets the event handler of the wheel event (the onwheel event handler attribute).
Property value
See also
OuterText
HtmlElement.Interaction.cshttps://html.spec.whatwg.org/multipage/dom.html#dom-outertext
public string OuterText { get; set; }Popover
HtmlElements.g.csGets 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; }ScrollParent
CssomView.Scrolling.csGets 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; }Spellcheck
HtmlElement.Interaction.cshttps://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; }Property value
See also
TabIndex
HtmlElements.g.csGets or sets the value of the tabindex content attribute.
public int TabIndex { get; set; }Title
HtmlElements.g.csGets or sets the value of the title content attribute.
public string Title { get; set; }Translate
HtmlElement.Interaction.cshttps://html.spec.whatwg.org/multipage/dom.html#dom-translate
public bool Translate { get; set; }VirtualKeyboardPolicy
VirtualKeyboard.csGets 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.csGets or sets the value of the writingsuggestions content attribute.
public string WritingSuggestions { get; set; }Property value
See also
Methods
| Name | Description |
|---|---|
| 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 |
AttachInternals()
HtmlElement.CustomElements.cshttps://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()Click()
HtmlElement.cshttps://html.spec.whatwg.org/multipage/interaction.html#dom-click
public void Click()Focus(FocusOptions?)
HTMLOrSVGOrMathMLElement.cshttps://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)HidePopover()
HtmlElement.Popover.cshttps://html.spec.whatwg.org/multipage/popover.html#dom-hidepopover
public void HidePopover()ShowPopover(ShowPopoverOptions?)
HtmlElement.Popover.cshttps://html.spec.whatwg.org/multipage/popover.html#dom-showpopover
public void ShowPopover(ShowPopoverOptions? options = null)TogglePopover overloads
TogglePopover(TogglePopoverOptions?)
HtmlElement.Popover.cshttps://html.spec.whatwg.org/multipage/popover.html#dom-togglepopover
public bool TogglePopover(TogglePopoverOptions? options = null)TogglePopover(bool)
HtmlElement.Popover.cshttps://html.spec.whatwg.org/multipage/popover.html#dom-togglepopover