INodeCollectionInsert Method |
Inserts a new node before an existing beforeNode.
Namespace:
DotNetBrowser.Dom
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.18.0
Syntax bool Insert(
INode node,
INode beforeNode
)
Parameters
- node
- Type: DotNetBrowser.DomINode
The node to insert. - beforeNode
- Type: DotNetBrowser.DomINode
The node before which the node will be inserted.
Return Value
Type:
Booleantrue if node was successfully inserted,
false otherwise.
Exceptions Exception | Condition |
---|
ArgumentException |
The node or beforeNode is null.
|
ObjectDisposedException | The INode has already been disposed. |
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.
See Also