OpenXmlPartContainer.GetPartsCountOfType<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Use GetPartsOfType<T>().Count() instead
Gets the count of all parts of type T.
public int GetPartsCountOfType<T> () where T : DocumentFormat.OpenXml.Packaging.OpenXmlPart;
[System.Obsolete("Use GetPartsOfType<T>().Count() instead")]
public int GetPartsCountOfType<T> () where T : DocumentFormat.OpenXml.Packaging.OpenXmlPart;
member this.GetPartsCountOfType : unit -> int (requires 'T :> DocumentFormat.OpenXml.Packaging.OpenXmlPart)
[<System.Obsolete("Use GetPartsOfType<T>().Count() instead")>]
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.
- Attributes
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for