OpenXmlElement.InsertAfter(T, OpenXmlElement) OpenXmlElement.InsertAfter(T, OpenXmlElement) OpenXmlElement.InsertAfter(T, OpenXmlElement) Method

Definition

Inserts the specified element immediately after the specified reference element.

public virtual T InsertAfter<T> (T newChild, DocumentFormat.OpenXml.OpenXmlElement refChild) where T : DocumentFormat.OpenXml.OpenXmlElement;
abstract member InsertAfter : 'T * DocumentFormat.OpenXml.OpenXmlElement -> 'T (requires 'T :> DocumentFormat.OpenXml.OpenXmlElement)
override this.InsertAfter : 'T * DocumentFormat.OpenXml.OpenXmlElement -> 'T (requires 'T :> DocumentFormat.OpenXml.OpenXmlElement)
Public Overridable Function InsertAfter(Of T As OpenXmlElement) (newChild As T, refChild As OpenXmlElement) As T

Type Parameters

T

Parameters

newChild
T T T

The OpenXmlElement to insert.

refChild
OpenXmlElement OpenXmlElement OpenXmlElement

The OpenXmlElement that is the reference node. The newChild is placed after the refChild.

Returns

T T T

The OpenXmlElement element that was inserted.

Applies to