Click or drag to resize

OpenXmlElementInsertAfterSelfT Method

Inserts the specified element immediately after the current element.

Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll) Version: 2.11.3+Branch.master.Sha.3fcdea311b5a001803ff150de35c25fd4cd62f93.3fcdea311b5a001803ff150de35c25fd4cd62f93
Syntax
public T InsertAfterSelf<T>(
	T newElement
)
where T : OpenXmlElement

Parameters

newElement  T
The new element to insert.

Type Parameters

T

Return Value

T
The inserted element.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when the "newElement" parameter is a null reference.
InvalidOperationExceptionThrown when the parent is a null reference.
See Also