Discover the CustomPartCollection Count property to easily retrieve the total number of elements in your collection for efficient data management.... Document doc = new Document ( MyDir + "Custom...docx" ); Assert . AreEqual ( 2 , doc . PackageCustomParts . Count...