Aracılığıyla paylaş


OpenXmlCompositeElement.RemoveChild<T>(T) Method

Definition

Removes the specified child element.

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

Type Parameters

T

Parameters

childoldChild
T

The element to remove. Must be a child of this element.

Returns

T

The element that was removed.

Remarks

Returns null if child is null.

Applies to