Freigeben über


OpenXmlPartContainer.GetPartsOfType<T>-Methode (ICollection<T>)

Gets all the children 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

Typparameter

  • T
    Derived class from OpenXmlPart.

Parameter

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

Thrown when "partCollection" is null reference.

Siehe auch

Referenz

OpenXmlPartContainer Klasse

OpenXmlPartContainer-Member

GetPartsOfType Überladung

DocumentFormat.OpenXml.Packaging-Namespace