Count
Returns the count of all the objects in the collection.
int Count( )
the count of objects
EX1
// The function display the total number of pages in the project. void run_Collection_Count() { // Default constructor creates an unattached Collection object: Collection<PageBase> pgColl; // Attach to the collection of all the pages in the project: pgColl = Project.Pages; // Get the total count: printf("Total count of objects is %d.\n", pgColl.Count()); }
origin.h