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
XML
Type: System.StringRepresents the subtree to be added.
NextSibling
Type: Microsoft.Office.Core.CustomXMLNodeSpecifies the context node.
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.