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
trueif node was successfully inserted,falseotherwise.
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
nodeorbeforeNodeis null.- ObjectDisposedException
The INode has already been disposed.