ElementAttachShadow Method
Creates shadow root and attaches it to current element.

Namespace: Aspose.Html.Dom
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 20.11
Syntax
public ShadowRoot AttachShadow(
	ShadowRootMode mode
)

Parameters

mode
Type: Aspose.Html.DomShadowRootMode
Mode in which shadow root will be created.

Return Value

Type: ShadowRoot
Created ShadowRoot.
Exceptions
ExceptionCondition
ErrorNotSupportedError: Element does not support shadow tree.
ErrorInvalidStateError: Element already has shadow tree.
See Also