Table of Contents

Class SVGAElement

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The SVGAElement interface provides access to the properties of an a element, as well as methods to manipulate them.

[Value("SVGAElement")]
public class SVGAElement : SVGGraphicsElement, Region, GeometryUtils, ParentNode, NonDocumentTypeChildNode, ChildNode, Slottable, ARIAMixin, Animatable, ElementCSSInlineStyle, GlobalEventHandlers, SVGElementInstance, HTMLOrSVGElement, SVGTests, SVGURIReference
Inheritance
SVGAElement
Implements
Inherited Members

Remarks

-SVG a element

See also on MDN

Constructors

SVGAElement()

public SVGAElement()

Properties

Download

The download property of the SVGAElement interface returns a string indicating that the browser should treat the linked URL as a download.

[Value("download")]
public string Download { get; set; }

Property Value

string

A string.

Remarks

This property can be set, to change the URL's download value. It reflects the value of the download attribute.

NOTE

This value might not be used for download. This value cannot be used to determine whether the download will occur.

-download attribute

See also on MDN

Hash

The hash property of the SVGAElement interface returns a string representing the fragment identifier, including the leading hash mark (#), if any, in the referenced URL.

[Value("hash")]
public string Hash { get; set; }

Property Value

string

A string.

Remarks

This property can be set, to change the URL's fragment (ignores leading #).

-SVG <a> element

See also on MDN

Host

The host property of the SVGAElement interface returns a string representing the hostname and port (if it's not the default port) in the referenced URL.

[Value("host")]
public string Host { get; set; }

Property Value

string

A string.

Remarks

This property can be set, to change the URL's host and port.

-SVG <a> element

See also on MDN

Hostname

The hostname property of the SVGAElement interface returns a string representing the hostname in the referenced URL.

[Value("hostname")]
public string Hostname { get; set; }

Property Value

string

A string.

Remarks

This property can be set, to change the URL's hostname.

-SVG <a> element

See also on MDN

Hreflang

The hreflang property of the SVGAElement interface returns a string indicating the language of the linked resource.

[Value("hreflang")]
public string Hreflang { get; set; }

Property Value

string

A string.

Remarks

This property can be set, to change the URL's hreflang value. It reflects the value of the hreflang attribute.

-hreflang attribute

See also on MDN

Origin

The origin readonly property of the SVGAElement interface returns a string containing the origin of the URL — that is, its scheme, its domain and its port.

[Value("origin")]
public string Origin { get; }

Property Value

string

A string.

Remarks

Password

The password property of the SVGAElement interface returns a string containing the password specified before the domain name.

[Value("password")]
public string Password { get; set; }

Property Value

string

A string.

Remarks

This property can be set, to change the URL's password.

-SVG <a> element

See also on MDN

Pathname

The pathname property of the SVGAElement interface returns a string containing an initial / followed by the path of the URL, not including the query string or fragment.

[Value("pathname")]
public string Pathname { get; set; }

Property Value

string

A string.

Remarks

This property can be set, to change the URL's pathname.

-SVG <a> element

See also on MDN

Ping

The ping property of the SVGAElement interface returns a string that reflects the ping attribute, containing a space-separated list of URLs to which, when the hyperlink is followed, POST requests with the body PING will be sent by the browser (in the background). Typically used for tracking.

[Value("ping")]
public string Ping { get; set; }

Property Value

string

A string.

Remarks

This property can be set, to change the URL's ping value. It reflects the value of the ping attribute.

-ping attribute

See also on MDN

Port

The port property of the SVGAElement interface returns a string representing the port component, if any, of the referenced URL.

[Value("port")]
public string Port { get; set; }

Property Value

string

A string.

Remarks

This property can be set, to change the URL's port.

-SVG <a> element

See also on MDN

Protocol

The protocol property of the SVGAElement interface returns a string representing the protocol component, including trailing colon (:), of the referenced URL.

[Value("protocol")]
public string Protocol { get; set; }

Property Value

string

A string.

Remarks

This property can be set, to change the URL's protocol.

-SVG <a> element

See also on MDN

ReferrerPolicy

[Value("referrerPolicy")]
public string ReferrerPolicy { get; set; }

Property Value

string

Rel

The rel property of the SVGAElement returns a string reflecting the value of the rel attribute of the SVG a element.

[Value("rel")]
public string Rel { get; set; }

Property Value

string

A string; the value of the rel attribute.

Remarks

The rel attribute specifies the space-separated list of link types, the <list-of-Link-Types>, indicating the relationship between the target or resource represented by the a element and the current document. The property can get or set the rel attribute value.

-rel
-RelList
-Rel
-Rel

See also on MDN

RelList

The read-only relList property of the SVGAElement returns a live DOMTokenList reflecting the space-separated string <list-of-Link-Types> values of the rel attribute of the SVG a element.

[Value("relList")]
public DOMTokenList RelList { get; }

Property Value

DOMTokenList

A live DOMTokenList.Although the relList property itself is read-only in the sense that you can't replace the DOMTokenList object, you can still assign to the relList property directly, which is equivalent to assigning to its DOMTokenListvalue property. You can also modify the DOMTokenList object using the DOMTokenListadd, DOMTokenListremove, DOMTokenListreplace, and DOMTokenListtoggle methods.

Remarks

The search property of the SVGAElement interface returns a string representing the URL's query string, if any, including the leading question mark (?).

[Value("search")]
public string Search { get; set; }

Property Value

string

A string.

Remarks

This property can be set, to change the URL's query component.

-SVG <a> element

See also on MDN

Target

The SVGAElement.target read-only property of SVGAElement returns an SVGAnimatedString object that specifies the portion of a target window, frame, pane into which a document is to be opened when a link is activated.

[Value("target")]
public SVGAnimatedString Target { get; }

Property Value

SVGAnimatedString

An SVGAnimatedString indicating the ending resource target that opens the document when the link is activated. See {{SVGAttr("target")}} for valid values.

Remarks

This property is used when there are multiple possible targets for the ending resource, like when the parent document is a multi-frame HTML or XHTML document.

-target

See also on MDN

Text

IMPORTANT
Deprecated
The text property of the SVGAElement interface returns a string that is a synonym for the TextContent property.
[Value("text")]
public string Text { get; set; }

Property Value

string

A string.

Remarks

Type

The type property of the SVGAElement interface returns a string indicating the MIME type of the linked resource.

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

Property Value

string

A string.

Remarks

This property can be set, to change the URL's type value. It reflects the value of the type attribute.

-type attribute

See also on MDN

Username

The username property of the SVGAElement interface returns a string containing the username specified before the domain name.

[Value("username")]
public string Username { get; set; }

Property Value

string

A string.

Remarks

This property can be set, to change the URL's username.

-SVG <a> element

See also on MDN