NodeReplaceChild Method

Replaces the child node oldChild with newChild in the list of children, and returns the oldChild node. If newChild is a DocumentFragment object, oldChild is replaced by all of the DocumentFragment children, which are inserted in the same order. If the newChild is already in the tree, it is first removed.

Namespace:  Aspose.Svg.Dom
Assembly:  Aspose.SVG (in Aspose.SVG.dll) Version: 22.1
public Node ReplaceChild(
	Node node,
	Node child


Type: Aspose.Svg.DomNode
The new node.
Type: Aspose.Svg.DomNode
The old child.

Return Value

Type: Node
Returns node
See Also