Class SVGImageElement
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The SVGImageElement interface corresponds to the image element.
[Value("SVGImageElement")]
public class SVGImageElement : SVGGraphicsElement, ElementCSSInlineStyle, GlobalEventHandlers, SVGElementInstance, HTMLOrSVGElement, SVGTests, SVGURIReference
- Inheritance
-
SVGImageElement
- Implements
- Inherited Members
Remarks
Constructors
SVGImageElement()
public SVGImageElement()
Properties
CrossOrigin
The crossOrigin property of the SVGImageElement interface is a string which specifies the Cross-Origin Resource Sharing ({{Glossary("CORS")}}) setting to use when retrieving the image. It reflects the {{SVGAttr("crossorigin")}} content attribute of the given {{SVGElement("image")}} element.
[Value("crossOrigin")]
public string? CrossOrigin { get; set; }
Property Value
- string
A string which specifies the CORS mode used when fetching the image resource. Valid values are
"anonymous"or"use-credentials". If thecrossOriginproperty is set to any other value, it is the same as specifying"anonymous".
Remarks
Height
The height read-only property of the
SVGImageElement interface returns an SVGAnimatedLength
corresponding to the height attribute of the given
image element.
[Value("height")]
public SVGAnimatedLength Height { get; }
Property Value
Remarks
PreserveAspectRatio
The preserveAspectRatio read-only
property of the SVGImageElement interface returns an
SVGAnimatedPreserveAspectRatio corresponding to the
{{SVGAttr("preserveAspectRatio")}} attribute of the given image
element.
[Value("preserveAspectRatio")]
public SVGAnimatedPreserveAspectRatio PreserveAspectRatio { get; }
Property Value
Remarks
Width
The width read-only property of the
SVGImageElement interface returns an SVGAnimatedLength
corresponding to the {{SVGAttr("width")}} attribute of the given image
element.
[Value("width")]
public SVGAnimatedLength Width { get; }
Property Value
Remarks
X
The x read-only property of the
SVGImageElement interface returns an SVGAnimatedLength
corresponding to the {{SVGAttr("x")}} attribute of the given image
element.
[Value("x")]
public SVGAnimatedLength X { get; }
Property Value
Remarks
Y
The y read-only property of the
SVGImageElement interface returns an SVGAnimatedLength
corresponding to the {{SVGAttr("y")}} attribute of the given image
element.
[Value("y")]
public SVGAnimatedLength Y { get; }