Udostępnij za pośrednictwem


OpenXmlElement.RemoveChild<T>(T) Method

Definition

Removes the specified child element from the current element's list of child elements.

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

Type Parameters

T

Parameters

oldChild
T

The child element to remove.

Returns

T

The element that was removed.

Applies to