Node.ReplaceChild
Node.ReplaceChild 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.
public Node ReplaceChild(Node node, Node child)
Parameter | Type | Description |
---|---|---|
node | Node | The new node. |
child | Node | The old child. |
Return Value
Returns node
See Also
- class Node
- namespace Aspose.Svg.Dom
- assembly Aspose.SVG