CollectionEmbeddedPages::Count

Description

Returns the count of all the objects in the collection.

Syntax

int Count( )

Parameters

Return

returns the number of pages embedded in the Worksheet

Examples

EX1

void CollectionEmbeddedPages_Count_Ex1()
{
    Worksheet wks = Project.ActiveLayer();
    if(!wks)
        return;
    
    CollectionEmbeddedPages embeddedPages(wks);
    int nCount = embeddedPages.Count();
    printf("%d pages embdded in a worksheet", nCount);
}

Remark

See Also

header to Include

origin.h