OpenXmlPartContainer.DeleteParts<T> Method

Deletes all the parts which in the passed in collection from the document.

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

public void DeleteParts<T>(
	IEnumerable<T> partsToBeDeleted
)
where T : OpenXmlPart

Type Parameters

T

Parameters

partsToBeDeleted
Type: System.Collections.Generic.IEnumerable<T>
The parts to be deleted.

ExceptionCondition
ArgumentNullException

Thrown when "partsToBeDeleted" is null reference.

Community Additions

ADD
Show:
© 2014 Microsoft