Click or drag to resize

INodeCollectionInsert Method

Inserts a new node before an existing beforeNode.

Namespace:  DotNetBrowser.Dom
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.23.2
Syntax
C#
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: Boolean
true if node was successfully inserted, false otherwise.
Exceptions
ExceptionCondition
ArgumentException The node or beforeNode is null.
ObjectDisposedExceptionThe 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