Edit

Share via


CustomXMLNode.InsertSubtreeBefore(String, CustomXMLNode) Method

Definition

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

public void InsertSubtreeBefore (string XML, Microsoft.Office.Core.CustomXMLNode NextSibling = default);
abstract member InsertSubtreeBefore : string * Microsoft.Office.Core.CustomXMLNode -> unit
Public Sub InsertSubtreeBefore (XML As String, Optional NextSibling As CustomXMLNode = Nothing)

Parameters

XML
String

Represents the subtree to be added.

NextSibling
CustomXMLNode

Specifies 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.

Applies to