OpenXmlElement.InsertAt<T> Method
Inserts the specified element at the specified index in children.
Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
声明
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, _
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.