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.
Replaces the child OpenXmlElement oldChild with newChild OpenXmlElement.
Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Overrides Function ReplaceChild(Of T As OpenXmlElement) ( _
newChild As OpenXmlElement, _
oldChild As T _
) As T
'Usage
Dim instance As OpenXmlCompositeElement
Dim newChild As OpenXmlElement
Dim oldChild As T
Dim returnValue As T
returnValue = instance.ReplaceChild(newChild, _
oldChild)
public override T ReplaceChild<T>(
OpenXmlElement newChild,
T oldChild
)
where T : OpenXmlElement
Type Parameters
- T
Parameters
- newChild
Type: DocumentFormat.OpenXml.OpenXmlElement
The new OpenXmlElement to put in the child list.
- oldChild
Type: T
The OpenXmlElement being replaced in the list.
Return Value
Type: T
The OpenXmlElement replaced.
Remarks
No change if the (newChild == null). Just return null.