OpenXmlElement.InsertAfter<T> method
Office 2013
Inserts the specified element immediately after the specified reference element.
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
public virtual T InsertAfter<T>( T newChild, OpenXmlElement refChild ) where T : OpenXmlElement
Type parameters
- T
Parameters
- newChild
- Type: T
The OpenXmlElement to insert.
- refChild
- Type: DocumentFormat.OpenXml.OpenXmlElement
The OpenXmlElement that is the reference node. The newChild is placed after the refChild.
Return value
Type: TThe OpenXmlElement element that was inserted.