Class SVGNumberList
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The SVGNumberList interface defines a list of numbers.
[Value("SVGNumberList")]
public class SVGNumberList
- Inheritance
-
SVGNumberList
- Inherited Members
Remarks
An SVGNumberList object can be designated as read only, which means that attempts to modify the object will result in an exception being thrown.
An SVGNumberList object is indexable and can be accessed like an array.
Constructors
SVGNumberList()
public SVGNumberList()
Properties
Length
The length property of the SVGNumberList interface returns the number of items in the list. It is an alias of NumberOfItems to make SVG lists more array-like.
[Value("length")]
public ulong Length { get; }
Property Value
- ulong
A non-negative integer that represents the number of items in the list.
Remarks
NumberOfItems
The numberOfItems property of the SVGNumberList interface returns the number of items in the list. Length is an alias of it.
[Value("numberOfItems")]
public ulong NumberOfItems { get; }
Property Value
- ulong
A non-negative integer that represents the number of items in the list.
Remarks
Methods
AppendItem(SVGNumber)
The appendItem() method of the SVGNumberList interface inserts a new item at the end of the list. If the given 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.
[Value("appendItem")]
public SVGNumber AppendItem(SVGNumber newItem)
Parameters
newItemSVGNumber
Returns
Remarks
Clear()
The clear() method of the SVGNumberList interface clears all existing items from the list, with the result being an empty list.
[Value("clear")]
public GlobalObject.Undefined Clear()
Returns
Remarks
Initialize(SVGNumber)
The initialize() method of the SVGNumberList interface clears all existing items from the list and re-initializes the list to hold the single item specified by the parameter. 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. The return value is the item inserted into the list.
[Value("initialize")]
public SVGNumber Initialize(SVGNumber newItem)
Parameters
newItemSVGNumber
Returns
Remarks
InsertItemBefore(SVGNumber, ulong)
The insertItemBefore() method of the SVGNumberList interface inserts a new item into the list at the specified position. The first item is indexed 0. The inserted item is the item itself and not a copy.
[Value("insertItemBefore")]
public SVGNumber InsertItemBefore(SVGNumber newItem, ulong index)
Parameters
Returns
Remarks
RemoveItem(ulong)
The removeItem() method of the SVGNumberList interface removes an existing item at the given index from the list.
[Value("removeItem")]
public SVGNumber RemoveItem(ulong index)
Parameters
indexulong
Returns
Remarks
ReplaceItem(SVGNumber, ulong)
The replaceItem() method of the SVGNumberList interface replaces an existing item in the list with a new item. If the new 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. If the item is already in this list, note that the index of the item to replace is before the removal of the item.
[Value("replaceItem")]
public SVGNumber ReplaceItem(SVGNumber newItem, ulong index)