OpenXmlElement.InsertAt<T> Method

Inserts the specified element at the specified index in children.

Namespace:  DocumentFormat.OpenXml
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)


Public Overridable Function InsertAt(Of T As OpenXmlElement) ( _
    newChild As T, _
    index As Integer _
) As T
Dim instance As OpenXmlElement
Dim newChild As T
Dim index As Integer
Dim returnValue As T

returnValue = instance.InsertAt(newChild, _
public virtual T InsertAt<T>(
    T newChild,
    int index
where T : OpenXmlElement

Type Parameters

  • T


  • newChild
    Type: T
    The OpenXmlElement to be inserted.
  • index
    Type: System.Int32
    The zero-based index at which element should be inserted.

Return Value

Type: T
The OpenXmlElement being inserted.


No change if the (newChild == null). Just return null.

See Also


OpenXmlElement Class

OpenXmlElement Members

DocumentFormat.OpenXml Namespace