insertAfter method
insertAfter(newChild, refChild)
Inserts the specified node immediately after the specified reference node.
insertAfter(newChild: Aspose.Words.Node, refChild: Aspose.Words.Node)
Parameter | Type | Description |
---|---|---|
newChild | Node | The Node to insert. |
refChild | Node | The Node that is the reference node. The newChild is placed after therefChild. |
Remarks
If refChild isnull
, inserts newChild at the beginning of the list of child nodes.
If the newChild is already in the tree, it is first removed.
If the node being inserted was created from another document, you should use DocumentBase.importNode() to import the node to the current document. The imported node can then be inserted into the current document.
Returns
The inserted node.
See Also
- module Aspose.Words
- class CompositeNode