Class SVGGeometryElement
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The SVGGeometryElement interface represents SVG elements whose rendering is defined by geometry with an equivalent path, and which can be filled and stroked. This includes paths and the basic shapes.
[Value("SVGGeometryElement")]
public class SVGGeometryElement : SVGGraphicsElement, ElementCSSInlineStyle, GlobalEventHandlers, SVGElementInstance, HTMLOrSVGElement, SVGTests
- Inheritance
-
SVGGeometryElement
- Implements
- Derived
- Inherited Members
Remarks
Constructors
SVGGeometryElement()
public SVGGeometryElement()
Properties
PathLength
The SVGGeometryElement.pathLength property reflects the
pathLength attribute and returns the total length of the path, in user units.
[Value("pathLength")]
public SVGAnimatedNumber PathLength { get; }
Property Value
- SVGAnimatedNumber
A number.
Remarks
Methods
GetPointAtLength(Number)
TheSVGGeometryElement.getPointAtLength() method returns the
point at a given distance along the path.
[Value("getPointAtLength")]
public DOMPoint GetPointAtLength(Number distance)
Parameters
distanceNumber
Returns
Remarks
GetTotalLength()
The SVGGeometryElement.getTotalLength() method returns
the user agent's computed value for the total length of the path in user units.
[Value("getTotalLength")]
public Number GetTotalLength()
Returns
- Number
A float indicating the total length of the path in user units.
Remarks
IsPointInFill(DOMPointInit)
The isPointInFill() method of the SVGGeometryElement interface determines whether a given point is within the fill shape of an element. The point argument is interpreted as a point in the local coordinate system of the element.
[Value("isPointInFill")]
public bool IsPointInFill(DOMPointInit point = null)
Parameters
pointDOMPointInit
Returns
- bool
A boolean indicating whether the given point is within the fill or not.
Remarks
IsPointInStroke(DOMPointInit)
The isPointInStroke() method of the SVGGeometryElement interface determines whether a given point is within the stroke shape of an element. The point argument is interpreted as a point in the local coordinate system of the element.
[Value("isPointInStroke")]
public bool IsPointInStroke(DOMPointInit point = null)
Parameters
pointDOMPointInit
Returns
- bool
A boolean indicating whether the given point is within the stroke or not.