OpenXmlPartContainer.GetPartsCountOfType<T> Method

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 the count of all parts in type T.

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


Public Function GetPartsCountOfType(Of T As OpenXmlPart) As Integer
Dim instance As OpenXmlPartContainer
Dim returnValue As Integer

returnValue = instance.GetPartsCountOfType()
public int GetPartsCountOfType<T>()
where T : OpenXmlPart

Type Parameters

  • T
    Specifies the type of the part.

Return Value

Type: System.Int32
Returns the count number of the parts.

See Also


OpenXmlPartContainer Class

OpenXmlPartContainer Members

DocumentFormat.OpenXml.Packaging Namespace