insert

insert(index, node)

Inserts the specified DataElement at the given index. If a DataElement with the same ElementID already exists, it will be replaced.

ParameterDescription
indexThe zero-based index at which the element should be inserted.
nodeThe DataElement instance to insert or replace at the target position.

Returns: The DataElement that was inserted or used to replace an existing entry.