SetOrder
Order, when >= 0, it is the order of the page in a slide show of the folder. When -1, the page is hidden from a slide show. Sets the order of a page in a given folder. If pFolder is NULL (default) will set its order in the current folder.
BOOL SetOrder( int nOrder, Folder * pFolder = NULL )
Returns non-zero if the folder contains the page or a shortcut to the page and the operation is successful, otherwise returs FALSE.
EX1
void PageBase_SetOrder_ex1() { PageBase pb; pb = Project.Pages(); // Get the project's active page if( pb.IsValid() ) { int nOrder = 1; BOOL nRet = pb.SetOrder(nOrder); printf("The order is %d\n", pb.GetOrder()); } }
PageBase::GetOrder
origin.h