Click or drag to resize

IElementOuterHtml Property

Gets or sets the outer HTML of the current element.

Namespace:  DotNetBrowser.Dom
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.13.0
Syntax
C#
string OuterHtml { get; set; }

Property Value

Type: String
The string that represents an HTML serialization of this element and its descendants.
Exceptions
ExceptionCondition
ArgumentExceptionThe value is set to null.
DomExceptionThe value was not set.
Remarks

While the element will be replaced in the document, the variable whose OuterHtml property was set will still hold a reference to the original element. See https://developer.mozilla.org/en-US/docs/Web/API/Element/outerHTML MDN web docs.

See Also