OpenXmlPartContainer.GetPartsOfType<T> Method

Enumerates all the children parts of the specified type "T" of this part.

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

Syntax

声明
Public Function GetPartsOfType(Of T As OpenXmlPart) As IEnumerable(Of T)
用法
Dim instance As OpenXmlPartContainer
Dim returnValue As IEnumerable(Of T)

returnValue = instance.GetPartsOfType()
public IEnumerable<T> GetPartsOfType<T>()
where T : OpenXmlPart

Type Parameters

  • T
    Derived class from OpenXmlPart.

Return Value

Type: System.Collections.Generic.IEnumerable<T>

See Also

Reference

OpenXmlPartContainer Class

OpenXmlPartContainer Members

GetPartsOfType Overload

DocumentFormat.OpenXml.Packaging Namespace