Class SVGLineElement
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The SVGLineElement interface provides access to the properties of line elements, as well as methods to manipulate them.
[Value("SVGLineElement")]
public class SVGLineElement : SVGGeometryElement, ElementCSSInlineStyle, GlobalEventHandlers, SVGElementInstance, HTMLOrSVGElement, SVGTests
- Inheritance
-
SVGLineElement
- Implements
- Inherited Members
Remarks
-line SVG Element
Constructors
SVGLineElement()
public SVGLineElement()
Properties
X1
The x1 read-only property of the SVGLineElement interface describes the start of the SVG line along the x-axis as an SVGAnimatedLength. It reflects the {{SVGElement("line")}} element's {{SVGAttr("x1")}} geometric attribute.
[Value("x1")]
public SVGAnimatedLength X1 { get; }
Property Value
Remarks
The attribute value is a <length>, <percentage>, or <number>. The numeric value of the BaseVal is that start position as a length along the x-axis in user coordinate system units.
X2
The x2 read-only property of the SVGLineElement interface describes the x-axis coordinate value of the end of a line as an SVGAnimatedLength. It reflects the {{SVGElement("line")}} element's {{SVGAttr("x2")}} geometric attribute.
[Value("x2")]
public SVGAnimatedLength X2 { get; }
Property Value
Remarks
The attribute value is a <length>, <percentage>, or <number>. The numeric value of the BaseVal is that end position along the x-axis in user coordinate system units.
Y1
The y1 read-only property of the SVGLineElement interface describes the start of the SVG line along the y-axis as an SVGAnimatedLength. It reflects the {{SVGElement("line")}} element's {{SVGAttr("y1")}} geometric attribute.
[Value("y1")]
public SVGAnimatedLength Y1 { get; }
Property Value
Remarks
The attribute value is a <length>, <percentage>, or <number>. The numeric value of the BaseVal is that start position as a length along the y-axis in user coordinate system units.
Y2
The y2 read-only property of the SVGLineElement interface describes the v-axis coordinate value of the end of a line as an SVGAnimatedLength. It reflects the {{SVGElement("line")}} element's {{SVGAttr("y2")}} geometric attribute.
[Value("y2")]
public SVGAnimatedLength Y2 { get; }
Property Value
Remarks
The attribute value is a <length>, <percentage>, or <number>. The numeric value of the BaseVal is that end position along the y-axis in user coordinate system units.