attach_shadow method
attach_shadow
Creates shadow root and attaches it to current element.
Returns
Created ShadowRoot
.
def attach_shadow(self, mode):
...
Parameter | Type | Description |
---|---|---|
mode | aspose.svg.dom.ShadowRootMode | Mode in which shadow root will be created. |
Exceptions
Exception | Description |
---|---|
Error | NotSupportedError: Element does not support shadow tree. |
Error | InvalidStateError: Element already has shadow tree. |
See Also
- module
aspose.svg.filters
- class
SVGFEDiffuseLightingElement
- class
ShadowRoot