Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
Type Parameters
- T
Parameters
- 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.
Remarks
No change if the (newChild == null). Just return null.