Get page index in folder.
int GetIndexInPageAndShortcuts( PageBase& pb )
return page Index in folder(include page and page shortcut)
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"); }
OriginC:Folder::PagesAndShortcuts
origin.h