Folder::GetIndexInPageAndShortcuts

 

Description

Get page index in folder.

Syntax

int GetIndexInPageAndShortcuts( PageBase& pb )

Parameters

pb
[input] the page which want to get index.

Return

return page Index in folder(include page and page shortcut)

Examples

EX1

void    GetIndex_Ex1()
{
    Folder fld = Project.ActiveFolder();
    if(fld.IsValid())
    {
        PageBase pb;
        pb = Project.Pages(); 
        int    nIndex = fld.GetIndexInPageAndShortcuts(pb);
        printf("The Index of Current page is: %d", nIndex);
        return;
    }
    printf("there is no active folder in current project");
}

Remark

See Also

OriginC:Folder::PagesAndShortcuts

header to Included

origin.h