SVGListBase-1.ReplaceItem

SVGListBase<T>.ReplaceItem method

Replaces an existing item in the list with a new item.

public T ReplaceItem(T newItem, ulong index)
ParameterTypeDescription
newItemTThe item which is to be inserted into the list.
indexUInt64The index of the item which is to be replaced. The first item is number 0.

Return Value

The inserted item.

Exceptions

exceptioncondition
dOMExceptionCode NO_MODIFICATION_ALLOWED_ERR. Raised when the list cannot be modified.
dOMExceptionCode INDEX_SIZE_ERR. Raised if the index number is greater than or equal to numberOfItems.

See Also