Folder::HasShortcut

 

Description

Check the page shortcut in current folder.

Syntax

BOOL HasShortcut( PageBase & page )

Parameters

page
[input] the page for which to find shortcut

Return

Returns TRUE is present otherwise FALSE

Examples

EX1

void    HasShortcut_Ex1()
{
    Folder fld = Project.ActiveFolder();
    if(fld.IsValid())
    {
        PageBase pb;
        pb = Project.Pages(); 
        BOOL bHas=false;
        if(pb.IsValid())
            bHas=fld.HasShortcut(pb);
        printf("Is Page has shortcut:%s",bHas?"yes":"not");
        return;
    }
    printf("there is no active folder in current project");
}

Remark

See Also

OriginC:Folder::AddShortcut

Header to Included

origin.h