OpenXmlPartContainer.GetPartsOfType<T> Method (ICollection<T>)

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Gets all the child parts of the specified type "T" into "partCollection" of this part.

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

Syntax

'Declaration
Public Sub GetPartsOfType(Of T As OpenXmlPart) ( _
    partCollection As ICollection(Of T) _
)
'Usage
Dim instance As OpenXmlPartContainer
Dim partCollection As ICollection(Of T)

instance.GetPartsOfType(partCollection)
public void GetPartsOfType<T>(
    ICollection<T> partCollection
)
where T : OpenXmlPart

Type Parameters

  • T
    Derived class from OpenXmlPart.

Parameters

Exceptions

Exception Condition
ArgumentNullException

Throws an exception when partCollection is null reference.

See Also

Reference

OpenXmlPartContainer Class

OpenXmlPartContainer Members

GetPartsOfType Overload

DocumentFormat.OpenXml.Packaging Namespace