Folder::RemoveShortcut

 

Description

Remove the shortcut to the given page in the folder

Syntax

BOOL RemoveShortcut( PageBase & page )

Parameters

page
[input] the page for which to find shortcut

Return

Returns non-zero if succeed otherwise FALSE

Examples

EX1

void    RemoveShortcut_Ex1()
{
    Folder fld = Project.ActiveFolder();
    if(fld.IsValid())
    {
        PageBase pb;
        pb = Project.Pages(); 
        BOOL bHas = false;
        if(pb.IsValid())
            bHas=fld.RemoveShortcut(pb);
        printf("Is shortcut has been removed:%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