HtmlDialogElement Class

https://html.spec.whatwg.org/multipage/interactive-elements.html#htmldialogelement

public sealed class HtmlDialogElement : HtmlElement
Inheritance
HtmlElement HtmlDialogElement

Properties

NameDescription
ClosedByGets or sets the value of the closedby content attribute.
OpenGets or sets a value indicating whether the element has the open content attribute.
ReturnValuehttps://html.spec.whatwg.org/multipage/interactive-elements.html#dom-dialog-returnvalue

Gets or sets the value of the closedby content attribute.

public string ClosedBy { get; set; }

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

public bool Open { get; set; }

https://html.spec.whatwg.org/multipage/interactive-elements.html#dom-dialog-returnvalue

public string ReturnValue { get; set; }

Methods

NameDescription
Close(string?)https://html.spec.whatwg.org/multipage/interactive-elements.html#dom-dialog-close
RequestClose(string?)https://html.spec.whatwg.org/multipage/interactive-elements.html#dom-dialog-requestclose
Show()https://html.spec.whatwg.org/multipage/interactive-elements.html#dom-dialog-show
ShowModal()https://html.spec.whatwg.org/multipage/interactive-elements.html#dom-dialog-showmodal

Close(string?)

EmbeddedContent.cs

https://html.spec.whatwg.org/multipage/interactive-elements.html#dom-dialog-close

public void Close(string? returnValue = null)

RequestClose(string?)

EmbeddedContent.cs

https://html.spec.whatwg.org/multipage/interactive-elements.html#dom-dialog-requestclose

public void RequestClose(string? returnValue = null)

https://html.spec.whatwg.org/multipage/interactive-elements.html#dom-dialog-show

public void Show()

https://html.spec.whatwg.org/multipage/interactive-elements.html#dom-dialog-showmodal

public void ShowModal()