OpenXmlCompositeElement.InsertAfter<T> Method (T, OpenXmlElement)
Inserts the specified element immediately after the specified reference element.
Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaración
Public Overrides Function InsertAfter(Of T As OpenXmlElement) ( _
newChild As T, _
refChild As OpenXmlElement _
) As T
'Uso
Dim instance As OpenXmlCompositeElement
Dim newChild As T
Dim refChild As OpenXmlElement
Dim returnValue As T
returnValue = instance.InsertAfter(newChild, _
refChild)
public override T InsertAfter<T>(
T newChild,
OpenXmlElement refChild
)
where T : OpenXmlElement
Type Parameters
- T
Parameters
- newChild
Type: T
The OpenXmlElement to insert.
- refChild
Type: DocumentFormat.OpenXml.OpenXmlElement
The OpenXmlElement that is the reference node. The newChild is placed after the refChild.
Return Value
Type: T
The OpenXmlElement being inserted.
Remarks
No change if the (newChild == null). Just return null.