Table of Contents

Class SVGMarkerElement

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The SVGMarkerElement interface provides access to the properties of marker elements, as well as methods to manipulate them. The marker element defines the graphics used for drawing marks on a shape.

[Value("SVGMarkerElement")]
public class SVGMarkerElement : SVGElement, ElementCSSInlineStyle, GlobalEventHandlers, SVGElementInstance, HTMLOrSVGElement, SVGFitToViewBox
Inheritance
SVGMarkerElement
Implements
Inherited Members

Remarks

The following properties and methods all return, or act on the attributes of the marker element represented by SVGMarkerElement.

See also on MDN

Constructors

SVGMarkerElement()

public SVGMarkerElement()

Fields

SVG_MARKERUNITS_STROKEWIDTH

[Value("SVG_MARKERUNITS_STROKEWIDTH")]
public const ushort SVG_MARKERUNITS_STROKEWIDTH = 2

Field Value

ushort

SVG_MARKERUNITS_UNKNOWN

[Value("SVG_MARKERUNITS_UNKNOWN")]
public const ushort SVG_MARKERUNITS_UNKNOWN = 0

Field Value

ushort

SVG_MARKERUNITS_USERSPACEONUSE

[Value("SVG_MARKERUNITS_USERSPACEONUSE")]
public const ushort SVG_MARKERUNITS_USERSPACEONUSE = 1

Field Value

ushort

SVG_MARKER_ORIENT_ANGLE

[Value("SVG_MARKER_ORIENT_ANGLE")]
public const ushort SVG_MARKER_ORIENT_ANGLE = 2

Field Value

ushort

SVG_MARKER_ORIENT_AUTO

[Value("SVG_MARKER_ORIENT_AUTO")]
public const ushort SVG_MARKER_ORIENT_AUTO = 1

Field Value

ushort

SVG_MARKER_ORIENT_UNKNOWN

[Value("SVG_MARKER_ORIENT_UNKNOWN")]
public const ushort SVG_MARKER_ORIENT_UNKNOWN = 0

Field Value

ushort

Properties

MarkerHeight

The markerHeight read-only property of the SVGMarkerElement interface returns an SVGAnimatedLength object containing the height of the {{SVGElement("marker")}} viewport as defined by the {{SVGattr("markerHeight")}} attribute.

[Value("markerHeight")]
public SVGAnimatedLength MarkerHeight { get; }

Property Value

SVGAnimatedLength

An SVGAnimatedLength object. The baseVal property of this object returns an SVGLength, the value of which returns the height.

Remarks

MarkerUnits

The markerUnits read-only property of the SVGMarkerElement interface returns an SVGAnimatedEnumeration object. This object returns an integer which represents the keyword values that the {{SVGattr("markerUnits")}} attribute accepts.

[Value("markerUnits")]
public SVGAnimatedEnumeration MarkerUnits { get; }

Property Value

SVGAnimatedEnumeration

An SVGAnimatedEnumeration object. The baseVal property of this object contains one of the following values:

Remarks

MarkerWidth

The markerWidth read-only property of the SVGMarkerElement interface returns an SVGAnimatedLength object containing the width of the {{SVGElement("marker")}} viewport as defined by the {{SVGattr("markerWidth")}} attribute.

[Value("markerWidth")]
public SVGAnimatedLength MarkerWidth { get; }

Property Value

SVGAnimatedLength

An SVGAnimatedLength object. The baseVal property of this object returns an SVGLength, the value of which returns the width.

Remarks

Orient

[Value("orient")]
public string Orient { get; set; }

Property Value

string

OrientAngle

The orientAngle read-only property of the SVGMarkerElement interface returns an SVGAnimatedAngle object containing the angle of the {{SVGattr("orient")}} attribute.

[Value("orientAngle")]
public SVGAnimatedAngle OrientAngle { get; }

Property Value

SVGAnimatedAngle

An SVGAnimatedAngle object. The baseVal property of this object returns an SVGAngle, the value of which returns the angle.

Remarks

OrientType

The orientType read-only property of the SVGMarkerElement interface returns an SVGAnimatedEnumeration object indicating whether the {{SVGattr("orient")}} attribute is auto, an angle value, or something else.

[Value("orientType")]
public SVGAnimatedEnumeration OrientType { get; }

Property Value

SVGAnimatedEnumeration

An SVGAnimatedEnumeration object. This contains one of the following values:

Remarks

This something else is most likely to be the keyword auto-start-reverse however the spec leaves it open for this to be other values. Unsupported values will generally be thrown away by the parser, leaving the value the default of auto.

See also on MDN

RefX

The refX read-only property of the SVGMarkerElement interface returns an SVGAnimatedLength object containing the value of the {{SVGattr("refX")}} attribute of the {{SVGElement("marker")}}.

[Value("refX")]
public SVGAnimatedLength RefX { get; }

Property Value

SVGAnimatedLength

An SVGAnimatedLength object. The baseVal property of this object returns an SVGLength, the value of which returns the refX.

Remarks

RefY

The refY read-only property of the SVGMarkerElement interface returns an SVGAnimatedLength object containing the value of the {{SVGattr("refY")}} attribute of the {{SVGElement("marker")}}.

[Value("refY")]
public SVGAnimatedLength RefY { get; }

Property Value

SVGAnimatedLength

An SVGAnimatedLength object. The baseVal property of this object returns an SVGLength, the value of which returns the refY.

Remarks

Methods

SetOrientToAngle(SVGAngle)

The setOrientToAngle() method of the SVGMarkerElement interface sets the value of the orient attribute to the value in the SVGAngle passed in.

[Value("setOrientToAngle")]
public GlobalObject.Undefined SetOrientToAngle(SVGAngle angle)

Parameters

angle SVGAngle

Returns

GlobalObject.Undefined

None (GlobalObject.Undefined).

Remarks

SetOrientToAuto()

The setOrientToAuto() method of the SVGMarkerElement interface sets the value of the orient attribute to auto.

[Value("setOrientToAuto")]
public GlobalObject.Undefined SetOrientToAuto()

Returns

GlobalObject.Undefined

None (GlobalObject.Undefined).

Remarks