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.
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
-SVGTransform
-NumberOfItems (alias property)
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
newItemSVGTransform
Returns
- SVGTransform
An SVGTransform object; the appended item from the list.
Remarks
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.
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
matrixDOMMatrix2DInit
Returns
- SVGTransform
An SVGTransform object.
Remarks
The values from the parameter matrix are copied; the matrix parameter is not adopted as SVGTransform::matrix.
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
newItemSVGTransform
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.
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
newItemSVGTransformindexulong
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.
RemoveItem(ulong)
The removeItem() method of the SVGTransformList interface removes an existing item from the list.
[Value("removeItem")]
public SVGTransform RemoveItem(ulong index)
Parameters
indexulong
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
newItemSVGTransformindexulong
Returns
- SVGTransform
An SVGTransform object; the inserted item from the list.