Table of Contents

Method CopyTo

Namespace
DocWright.Dom.Editing
Assembly
DocWright.Dom.dll

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

target DomNode

The node whose child collection receives the copies.

index int

The insertion index, or -1 to append.

Returns

IReadOnlyList<DomNode>

The inserted copies, in document order.

Exceptions

ArgumentNullException

target is null.

ArgumentException

target holds no editable child collection, or cannot hold this range's node type.

ArgumentOutOfRangeException

index is outside the target collection.