ElementAttachShadow Method

Creates shadow root and attaches it to current element.

Namespace:  Aspose.Svg.Dom
Assembly:  Aspose.SVG (in Aspose.SVG.dll) Version: 21.11
Syntax
public ShadowRoot AttachShadow(
	ShadowRootMode mode
)

Parameters

mode
Type: Aspose.Svg.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