SVGListBase-1.InsertItemBefore

SVGListBase<T>.InsertItemBefore method

Inserts a new item into the list at the specified position. The first item is number 0.

public T InsertItemBefore(T newItem, ulong index)
ParameterTypeDescription
newItemTThe item which is to be inserted into the list.
indexUInt64The index of the item before which the new item is to be inserted. The first item is number 0. If the index is equal to 0, then the new item is inserted at the front of the list. If the index is greater than or equal to numberOfItems, then the new item is appended to the end of the list.

Return Value

The inserted item.

Exceptions

exceptioncondition
dOMExceptionCode NO_MODIFICATION_ALLOWED_ERR. Raised when the list cannot be modified.

See Also