次の方法で共有


OpenXmlElement.ReplaceChild<T> Method

Replaces the child OpenXmlElement oldChild with newChild OpenXmlElement.

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

Syntax

'宣言
Public Overridable Function ReplaceChild(Of T As OpenXmlElement) ( _
    newChild As OpenXmlElement, _
    oldChild As T _
) As T
'使用
Dim instance As OpenXmlElement
Dim newChild As OpenXmlElement
Dim oldChild As T
Dim returnValue As T

returnValue = instance.ReplaceChild(newChild, _
    oldChild)
public virtual T ReplaceChild<T>(
    OpenXmlElement newChild,
    T oldChild
)
where T : OpenXmlElement

Type Parameters

  • T

Parameters

  • oldChild
    Type: T
    The OpenXmlElement being replaced in the list.

Return Value

Type: T
The OpenXmlElement replaced.

See Also

Reference

OpenXmlElement Class

OpenXmlElement Members

DocumentFormat.OpenXml Namespace