Share via


CustomXMLNode.InsertSubtreeBefore Method

Inserts the specified subtree into the location just before the context node.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Sub InsertSubtreeBefore ( _
    XML As String, _
    NextSibling As CustomXMLNode _
)
'Usage
Dim instance As CustomXMLNode
Dim XML As String
Dim NextSibling As CustomXMLNode

instance.InsertSubtreeBefore(XML, NextSibling)
void InsertSubtreeBefore(
    string XML,
    CustomXMLNode NextSibling
)

Parameters

Remarks

If the NextSibling parameter is not a child of the context node or if the operation would result in an invalid tree structure, the insertion is not performed and an error message is displayed.

See Also

Reference

CustomXMLNode Interface

CustomXMLNode Members

Microsoft.Office.Core Namespace