Class SVGRectElement
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The SVGRectElement interface provides access to the properties of rect elements, as well as methods to manipulate them.
[Value("SVGRectElement")]
public class SVGRectElement : SVGGeometryElement, ElementCSSInlineStyle, GlobalEventHandlers, SVGElementInstance, HTMLOrSVGElement, SVGTests
- Inheritance
-
SVGRectElement
- Implements
- Inherited Members
Remarks
Constructors
SVGRectElement()
public SVGRectElement()
Properties
Height
The height read-only property of the SVGRectElement interface describes the vertical size of an SVG rectangle as a SVGAnimatedLength. The length is in user coordinate system units along the y-axis. Its syntax is the same as that for <length>.
[Value("height")]
public SVGAnimatedLength Height { get; }
Property Value
Remarks
It reflects the {{SVGElement("rect")}} element's {{SVGAttr("height")}} presentational attribute. The CSS height property takes precedence over the SVG height presentational attribute, so the value may not reflect the elements actual size. The default value is 0.
Rx
The rx read-only property of the SVGRectElement interface describes the horizontal curve of the corners of an SVG rectangle as a SVGAnimatedLength. The length is in user coordinate system units along the x-axis. Its syntax is the same as that for <length>.
[Value("rx")]
public SVGAnimatedLength Rx { get; }
Property Value
Remarks
It reflects the {{SVGElement("rect")}} element's {{SVGAttr("rx")}} presentational attribute. The CSS rx property takes precedence over the SVG rx presentational attribute, so the value may not reflect the actual size of the rounded corners. The default value is 0, which draws a rectangle with square corners.
-Ry
Ry
The ry read-only property of the SVGRectElement interface describes the vertical curve of the corners of an SVG rectangle as a SVGAnimatedLength. The length is in user coordinate system units along the y-axis. Its syntax is the same as that for <length>.
[Value("ry")]
public SVGAnimatedLength Ry { get; }
Property Value
Remarks
It reflects the {{SVGElement("rect")}} element's {{SVGAttr("ry")}} presentational attribute. The CSS ry property takes precedence over the SVG ry presentational attribute, so the value may not reflect the actual size of the rounded corners. The default value is 0, which draws a rectangle with square corners.
-Rx
Width
The width read-only property of the SVGRectElement interface describes the horizontal size of an SVG rectangle as a SVGAnimatedLength. The length is in user coordinate system units along the x-axis. Its syntax is the same as that for <length>.
[Value("width")]
public SVGAnimatedLength Width { get; }
Property Value
Remarks
It reflects the {{SVGElement("rect")}} element's {{SVGAttr("width")}} presentational attribute. The CSS width property takes precedence over the SVG width presentational attribute, so the value may not reflect the elements actual size. The default value is 0.
X
The x read-only property of the SVGRectElement interface describes the horizontal coordinate of the position of an SVG rectangle as a SVGAnimatedLength. The <coordinate> is a length in the user coordinate system that is the given distance from the origin of the user coordinate system along the x-axis. Its syntax is the same as that for <length>.
[Value("x")]
public SVGAnimatedLength X { get; }
Property Value
Remarks
It reflects the {{SVGElement("rect")}} element's {{SVGAttr("x")}} geometric attribute value. The CSS x property takes precedence over the SVG x geometric attribute, so the value may not reflect the element's appearance. The default value is 0.
Y
The y read-only property of the SVGRectElement interface describes the vertical coordinate of the position of an SVG rectangle as a SVGAnimatedLength. The <coordinate> is a length in the user coordinate system that is the given distance from the origin of the user coordinate system along the y-axis. Its syntax is the same as that for <length>.
[Value("y")]
public SVGAnimatedLength Y { get; }
Property Value
Remarks
It reflects the {{SVGElement("rect")}} element's {{SVGAttr("y")}} geometric attribute value. The CSS y property takes precedence over the SVG y attribute, so the value may not reflect the element's appearance. The default value is 0.