Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the number of Web Parts on the current Web Part Page.
objParts.Count
objParts A reference to a Parts collection.
Remarks
The Web Part Page Header part is included in this count if it is present on the page.
The Count property applies to the Parts collection only; use the Count method to get the number of properties in a Properties collection.
Example
Microsoft Visual Basic Scripting Edition:
intPartsCountCount = WPSC.WebPartPage.Parts.Count
Microsoft JScript:
var intPartsCountCount = WPSC.WebPartPage.Parts.Count;
Requirements
Platforms: Microsoft Windows Server 2003
Count Method | Properties CollectionApplies to: Parts Collection