Freigeben über


OpenXmlElement.InsertAt<T>-Methode

Inserts the specified element at the specified index in children.

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

Syntax

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

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

Typparameter

  • T

Parameter

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

Rückgabewert

Typ: T
The OpenXmlElement being inserted.

Hinweise

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

Siehe auch

Referenz

OpenXmlElement Klasse

OpenXmlElement-Member

DocumentFormat.OpenXml-Namespace