Table of Contents

Class HTMLEmbedElement

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The HTMLEmbedElement interface provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating {{HTMLElement("embed")}} elements.

[Value("HTMLEmbedElement")]
public class HTMLEmbedElement : HTMLElement
Inheritance
HTMLEmbedElement
Inherited Members

Remarks

NOTE

This topic describes the HTMLEmbedElement interface as defined in the standard. It does not address earlier, non-standardized version of the interface.

-The HTML element implementing this interface: embed

See also on MDN

Constructors

HTMLEmbedElement()

public HTMLEmbedElement()

Properties

Align

[Value("align")]
public string Align { get; set; }

Property Value

string

Height

The height property of the HTMLEmbedElement interface returns a string that reflects the height attribute of the embed element, indicating the displayed height of the resource in CSS pixels.

[Value("height")]
public string Height { get; set; }

Property Value

string

A string indicating the displayed height of the resource in CSS pixels.

Remarks

Name

[Value("name")]
public string Name { get; set; }

Property Value

string

Src

The src property of the HTMLEmbedElement interface returns a string that indicates the URL of the resource being embedded.

[Value("src")]
public string Src { get; set; }

Property Value

string

A string.

Remarks

It reflects the src attribute of the embed element.

See also on MDN

Type

The type property of the HTMLEmbedElement interface returns a string that reflects the type attribute of the {{HTMLElement("embed")}} element, indicating the MIME type of the resource. It reflects the {{htmlelement("embed")}} element's type attribute

[Value("type")]
public string Type { get; set; }

Property Value

string

A string; the MIME type of the resource.

Remarks

Width

The width property of the HTMLEmbedElement interface returns a string that reflects the width attribute of the embed element, indicating the displayed width of the resource in CSS pixels.

[Value("width")]
public string Width { get; set; }

Property Value

string

A string indicating the displayed width of the resource in CSS pixels.

Remarks

Methods

GetSVGDocument()

The getSVGDocument() method of the HTMLEmbedElement interface returns the Document object of the embedded SVG.

[Value("getSVGDocument")]
public Document? GetSVGDocument()

Returns

Document

A Document.

Remarks