OpenXmlElement.RemoveChild<T>(T) 方法

定义

从当前元素的子元素列表中删除指定的子元素。

public virtual T RemoveChild<T> (T oldChild) where T : DocumentFormat.OpenXml.OpenXmlElement;
public virtual T RemoveChild<T> (T? oldChild) where T : DocumentFormat.OpenXml.OpenXmlElement;
public virtual T? RemoveChild<T> (T? oldChild) where T : DocumentFormat.OpenXml.OpenXmlElement;
abstract member RemoveChild : 'T -> 'T (requires 'T :> DocumentFormat.OpenXml.OpenXmlElement)
override this.RemoveChild : 'T -> 'T (requires 'T :> DocumentFormat.OpenXml.OpenXmlElement)
Public Overridable Function RemoveChild(Of T As OpenXmlElement) (oldChild As T) As T

类型参数

T

参数

oldChild
T

要删除的子元素。

返回

T

已删除的元素。

适用于