Table of Contents

Class SVGTransformList

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The SVGTransformList interface defines a list of SVGTransform objects.

[Value("SVGTransformList")]
public class SVGTransformList
Inheritance
SVGTransformList
Inherited Members

Remarks

An SVGTransformList object can be designated as read only, which means that attempts to modify the object will result in an exception being thrown.

An SVGTransformList is indexable and can be accessed like an array.

See also on MDN

Constructors

SVGTransformList()

public SVGTransformList()

Properties

Length

The length read-only property of the SVGTransformList interface represents the number of items in the list.

[Value("length")]
public ulong Length { get; }

Property Value

ulong

An integer; the number of SVGTransform objects in the list as an unsigned long.

Remarks

NumberOfItems

The numberOfItems read-only property of the SVGTransformList interface represents the number of items in the list.

[Value("numberOfItems")]
public ulong NumberOfItems { get; }

Property Value

ulong

An integer; the number of SVGTransform objects in the list as an unsigned long.

Remarks

Methods

AppendItem(SVGTransform)

The appendItem() method of the SVGTransformList interface inserts a new item at the end of the list.

[Value("appendItem")]
public SVGTransform AppendItem(SVGTransform newItem)

Parameters

newItem SVGTransform

Returns

SVGTransform

An SVGTransform object; the appended item from the list.

Remarks

The inserted item is the item itself and not a copy.

-SVGTransform
-NumberOfItems

See also on MDN

Clear()

The clear() method of the SVGTransformList interface clears all existing current items from the list, with the result being an empty list.

[Value("clear")]
public GlobalObject.Undefined Clear()

Returns

GlobalObject.Undefined

None ('undefined').

Remarks

Consolidate()

The consolidate() method of the SVGTransformList interface consolidates the list of separate SVGTransform objects by multiplying the equivalent transformation matrices together to result in a list consisting of a single SVGTransform object of type SVG_TRANSFORM_MATRIX.

[Value("consolidate")]
public SVGTransform? Consolidate()

Returns

SVGTransform

A live SVGTransform object; the consolidated transformation.

Remarks

The consolidation operation creates a new SVGTransform object as the first and only item in the list.

The returned item is the item itself and not a copy. Any changes made to the item are immediately reflected in the list.

-SVGTransform

See also on MDN

CreateSVGTransformFromMatrix(DOMMatrix2DInit)

The createSVGTransformFromMatrix() method of the SVGTransformList interface creates an SVGTransform object which is initialized to a transform of type SVG_TRANSFORM_MATRIX and whose values are the given matrix.

[Value("createSVGTransformFromMatrix")]
public SVGTransform CreateSVGTransformFromMatrix(DOMMatrix2DInit matrix = null)

Parameters

matrix DOMMatrix2DInit

Returns

SVGTransform

An SVGTransform object.

Remarks

The values from the parameter matrix are copied; the matrix parameter is not adopted as SVGTransform::matrix.

-SVGTransform
-DOMMatrix

See also on MDN

Initialize(SVGTransform)

The initialize() method of the SVGTransformList interface clears all existing current items from the list and re-initializes the list to hold the single item specified by the parameter.

[Value("initialize")]
public SVGTransform Initialize(SVGTransform newItem)

Parameters

newItem SVGTransform

Returns

SVGTransform

An SVGTransform object; the item inserted into the list.

Remarks

If the inserted item is already in a list, it is removed from its previous list before it is inserted into this list. The inserted item is the item itself and not a copy.

-SVGTransform

See also on MDN

InsertItemBefore(SVGTransform, ulong)

The insertItemBefore() method of the SVGTransformList interface inserts a new item into the list at the specified position.

[Value("insertItemBefore")]
public SVGTransform InsertItemBefore(SVGTransform newItem, ulong index)

Parameters

newItem SVGTransform
index ulong

Returns

SVGTransform

An SVGTransform object; the inserted item from the list.

Remarks

The first item is indexed at 0. The inserted item is the item itself and not a copy.

-SVGTransform

See also on MDN

RemoveItem(ulong)

The removeItem() method of the SVGTransformList interface removes an existing item from the list.

[Value("removeItem")]
public SVGTransform RemoveItem(ulong index)

Parameters

index ulong

Returns

SVGTransform

An SVGTransform object; the removed item from the list.

Remarks

ReplaceItem(SVGTransform, ulong)

The replaceItem() method of the SVGTransformList interface replaces an existing item in the list with a new item.

[Value("replaceItem")]
public SVGTransform ReplaceItem(SVGTransform newItem, ulong index)

Parameters

newItem SVGTransform
index ulong

Returns

SVGTransform

An SVGTransform object; the inserted item from the list.

Remarks

The inserted item is the item itself and not a copy.

-SVGTransform
-NumberOfItems

See also on MDN