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)
Parameter | Type | Description |
---|---|---|
newItem | T | The item which is to be inserted into the list. |
index | UInt64 | The 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
exception | condition |
---|---|
DOMException | Code NO_MODIFICATION_ALLOWED_ERR . Raised when the list cannot be modified. |
See Also
- class SVGListBase<T>
- namespace Aspose.Html.Dom.Svg.Collections
- assembly Aspose.HTML