OpenXmlPartContainer.GetPartsCountOfType OpenXmlPartContainer.GetPartsCountOfType OpenXmlPartContainer.GetPartsCountOfType Method

Definition

Gets the count of all parts of type T.

public int GetPartsCountOfType<T> () where T : DocumentFormat.OpenXml.Packaging.OpenXmlPart;
member this.GetPartsCountOfType : unit -> int (requires 'T :> DocumentFormat.OpenXml.Packaging.OpenXmlPart)
Public Function GetPartsCountOfType(Of T As OpenXmlPart) () As Integer

Type Parameters

T

The type of the part.

Returns

The number of parts of this type.

Applies to