Method CopyTo
CopyTo(DomNode, int)
Inserts deep copies of the range into another host, leaving the original in place.
public IReadOnlyList<DomNode> CopyTo(DomNode target, int index = -1)
Parameters
targetDomNodeThe node whose child collection receives the copies.
indexintThe insertion index, or -1 to append.
Returns
- IReadOnlyList<DomNode>
The inserted copies, in document order.
Exceptions
- ArgumentNullException
targetis null.- ArgumentException
targetholds no editable child collection, or cannot hold this range's node type.- ArgumentOutOfRangeException
indexis outside the target collection.