次の方法で共有


OpenXmlPartContainer.GetPartsCountOfType<T> Method

Gets the count of all parts in type T.

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

Syntax

'宣言
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
    The type of the part.

Return Value

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

See Also

Reference

OpenXmlPartContainer Class

OpenXmlPartContainer Members

DocumentFormat.OpenXml.Packaging Namespace