This topic has not yet been rated - Rate this topic

OpenXmlElement.InsertAfter<T> method

Inserts the specified element immediately after the specified reference element.

Namespace:  DocumentFormat.OpenXml
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: T
The OpenXmlElement element that was inserted.
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.