This documentation is archived and is not being maintained.

OpenXmlPartContainer.GetPartsCountOfType<T> Method

Gets the count of all parts in type T.

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

public int GetPartsCountOfType<T>()
where T : OpenXmlPart

Type Parameters

T

The type of the part.

Return Value

Type: System.Int32
The count number of the parts.
Show: