Click or drag to resize

OpenXmlCompositeElementInsertAtT Method

Inserts the specified element at the specified index in the current element's list of child elements.

Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll) Version: 2.20.0+Branch.release-v2.20.0.Sha.a873d3fbff9bffe179fea62486da950adf5be65d.a873d3fbff9bffe179fea62486da950adf5be65d
Syntax
public override T InsertAt<T>(
	T newChild,
	int index
)
where T : OpenXmlElement

Parameters

newChild  T
The OpenXmlElement element to insert.
index  Int32
The zero-based index where the element is to be inserted.

Type Parameters

T

Return Value

T
The OpenXmlElement element that was inserted.
Remarks
Returns nullif newChild equals null.
See Also