Table of Contents

Class SVGLinearGradientElement

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The SVGLinearGradientElement interface corresponds to the linearGradient element.

[Value("SVGLinearGradientElement")]
public class SVGLinearGradientElement : SVGGradientElement, ElementCSSInlineStyle, GlobalEventHandlers, SVGElementInstance, HTMLOrSVGElement, SVGURIReference
Inheritance
SVGLinearGradientElement
Implements
Inherited Members

Remarks

Constructors

SVGLinearGradientElement()

public SVGLinearGradientElement()

Properties

X1

The x1 read-only property of the SVGLinearGradientElement interface describes the x-axis coordinate of the start point of the gradient as an SVGAnimatedLength. It reflects the computed value of the {{SVGAttr("x1")}} attribute on the {{SVGElement("linearGradient")}} element.

[Value("x1")]
public SVGAnimatedLength X1 { get; }

Property Value

SVGAnimatedLength

An SVGAnimatedLength.

Remarks

The attribute value is a <length>, <percentage>, or <number>. The numeric value of the BaseVal is the x-coordinate of the gradient's starting point in the user coordinate system.

-X2
-BaseVal

See also on MDN

X2

The x2 read-only property of the SVGLinearGradientElement interface describes the x-axis coordinate of the start point of the gradient as an SVGAnimatedLength. It reflects the computed value of the {{SVGAttr("x2")}} attribute on the {{SVGElement("linearGradient")}} element.

[Value("x2")]
public SVGAnimatedLength X2 { get; }

Property Value

SVGAnimatedLength

An SVGAnimatedLength.

Remarks

The attribute value is a <length>, <percentage>, or <number>. The numeric value of the BaseVal is the x-coordinate of the gradient's end point in the user coordinate system.

-X1
-BaseVal

See also on MDN

Y1

The y1 read-only property of the SVGLinearGradientElement interface describes the y-axis coordinate of the start point of the gradient as an SVGAnimatedLength. It reflects the computed value of the {{SVGAttr("y1")}} attribute on the {{SVGElement("linearGradient")}} element.

[Value("y1")]
public SVGAnimatedLength Y1 { get; }

Property Value

SVGAnimatedLength

An SVGAnimatedLength.

Remarks

The attribute value is a <length>, <percentage>, or <number>. The numeric value of the BaseVal is the y-coordinate of the gradient's starting point in the user coordinate system.

-Y2
-BaseVal

See also on MDN

Y2

The y2 read-only property of the SVGLinearGradientElement interface describes the y-axis coordinate of the start point of the gradient as an SVGAnimatedLength. It reflects the computed value of the {{SVGAttr("y2")}} attribute on the {{SVGElement("linearGradient")}} element.

[Value("y2")]
public SVGAnimatedLength Y2 { get; }

Property Value

SVGAnimatedLength

An SVGAnimatedLength.

Remarks

The attribute value is a <length>, <percentage>, or <number>. The numeric value of the BaseVal is the y-coordinate of the gradient's end point in the user coordinate system.

-Y1
-BaseVal

See also on MDN