Method Insert
- Namespace
- DotNetBrowser.Dom
- Assembly
- DotNetBrowser.dll
Insert(INode, INode)
Inserts a new node
before an existing beforeNode
.
bool Insert(INode node, INode beforeNode)
Parameters
Returns
- bool
true
if node was successfully inserted,false
otherwise.
Remarks
The node
could be an existing
node in the document, or you can create and insert a new node. If the node is an existing node,
it will be moved to new location in the document.
Exceptions
- ArgumentException
The
node
orbeforeNode
is null.- ObjectDisposedException
The INode has already been disposed.