Class SVGElement
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface.
[Value("SVGElement")]
public class SVGElement : Element, ElementCSSInlineStyle, GlobalEventHandlers, SVGElementInstance, HTMLOrSVGElement
- Inheritance
-
SVGElement
- Implements
- Derived
- Inherited Members
Remarks
-HTML data-* attribute
-SVG {{SVGAttr("data-*")}} attribute
-Using custom data attributes in HTML
Constructors
SVGElement()
public SVGElement()
Properties
ClassName
[Value("className")]
public SVGAnimatedString ClassName { get; }
Property Value
OwnerSVGElement
The ownerSVGElement property of the SVGElement interface reflects the nearest ancestor {{SVGElement("svg")}} element. null if the given element is the outermost <svg> element.
[Value("ownerSVGElement")]
public SVGSVGElement? OwnerSVGElement { get; }
Property Value
Remarks
ViewportElement
The viewportElement property of the SVGElement interface represents the SVGElement which established the current viewport. Often the nearest ancestor svg element. null if the given element is the outermost <svg> element.
[Value("viewportElement")]
public SVGElement? ViewportElement { get; }
Property Value
- SVGElement
An SVGElement.
Remarks
-OwnerSVGElement: Retrieves the nearest ancestor <svg> element for the current SVG element.