Skip to content

Children<TNode>.Replace Method ​

Definition ​

Replaces a node in the collection with another node. The replacement will be removed from its parent and the node being replaced will have its parent removed.

c#
public void Replace(TNode child, TNode replacement);

View source

Parameters ​

NameTypeDescription
childTNodeThe node in the collection to replace.
replacementTNodeThe node to replace child with.