Table of Contents

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

node INode

The node to insert.

beforeNode INode

The node before which the node will be inserted.

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 or beforeNode is null.

ObjectDisposedException

The INode has already been disposed.