Collection::Count

Description

Returns the count of all the objects in the collection.

Syntax

int Count( )

Parameters

Return

the count of objects

Examples

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());
}

Remark

See Also

header to Include

origin.h