OpenXmlCompositeElement.RemoveChild(T) OpenXmlCompositeElement.RemoveChild(T) OpenXmlCompositeElement.RemoveChild(T) Method

Definition

Removes the specified child element.

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

Type Parameters

T

Parameters

oldChild
T T T

The element being removed.

Returns

T T T

The element that was removed.

Remarks

No change if the (newChild == null). Just return null.

Applies to