Click or drag to resize

OpenXmlCompositeElementInsertAfterT Method

Inserts the specified element immediately after the specified reference element.

Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll) Version: 2.11.3+Branch.master.Sha.3fcdea311b5a001803ff150de35c25fd4cd62f93.3fcdea311b5a001803ff150de35c25fd4cd62f93
Syntax
public override T InsertAfter<T>(
	T newChild,
	OpenXmlElement referenceChild
)
where T : OpenXmlElement

Parameters

newChild  T
The OpenXmlElement element to insert.
referenceChild  OpenXmlElement
The OpenXmlElement element after which newChild should be added. Must be a child of this element.

Type Parameters

T

Return Value

T
The OpenXmlElement element that was inserted.
Remarks
Returns null if newChild is null. Inserted as first child if referenceChild is null.
See Also