Table of Contents

Class SVGForeignObjectElement

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The SVGForeignObjectElement interface provides access to the properties of foreignObject elements, as well as methods to manipulate them.

[Value("SVGForeignObjectElement")]
public class SVGForeignObjectElement : SVGGraphicsElement, ElementCSSInlineStyle, GlobalEventHandlers, SVGElementInstance, HTMLOrSVGElement, SVGTests
Inheritance
SVGForeignObjectElement
Implements
Inherited Members

Remarks

Constructors

SVGForeignObjectElement()

public SVGForeignObjectElement()

Properties

Height

The height read-only property of the SVGForeignObjectElement interface describes the height of the <foreignObject> element. It reflects the computed value of the {{SVGAttr("height")}} attribute on the foreignObject element.

[Value("height")]
public SVGAnimatedLength Height { 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 <foreignObject> element in the user coordinate system.

-Width
-BaseVal

See also on MDN

Width

The width read-only property of the SVGForeignObjectElement interface describes the width of the <foreignObject> element. It reflects the computed value of the {{SVGAttr("width")}} attribute on the foreignObject element.

[Value("width")]
public SVGAnimatedLength Width { 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 <foreignObject> element in the user coordinate system.

-Height
-BaseVal

See also on MDN

X

The x read-only property of the SVGForeignObjectElement interface describes the x-axis coordinate of the <foreignObject> element. It reflects the computed value of the {{SVGAttr("x")}} attribute on the foreignObject element.

[Value("x")]
public SVGAnimatedLength X { 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 <foreignObject> element in the user coordinate system.

-Y
-BaseVal

See also on MDN

Y

The y read-only property of the SVGForeignObjectElement interface describes the y-axis coordinate of the <foreignObject> element. It reflects the computed value of the {{SVGAttr("y")}} attribute on the foreignObject element.

[Value("y")]
public SVGAnimatedLength Y { 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 <foreignObject> element in the user coordinate system.

-X
-BaseVal

See also on MDN