GetDestName

註解與熱點連結、目的地與動作

描述

傳回文件名稱樹中儲存的具名目的地控制代碼或顯式目的地陣列的名稱

語法

Delphi

Function TPDFlib.GetDestName(DestID: Integer): WideString;

ActiveX

Function PDFlib::GetDestName(DestID As Long) As String

DLL

const wchar_t * DLGetDestName(int InstanceID, int DestID);

參數

DestID由 GetActionDest、GetOpenActionDestination 或 GetNamedDestination 等 API 傳回的目的地控制代碼

傳回值

empty string控制代碼不是具名目的地,且找不到相符的名稱樹條目
nameThe destination name

備註

對顯式目的地陣列,此函式會搜尋文件名稱樹,存在相符項目時傳回對應的目的地名稱

另見

GetOpenActionDestination, NewNamedDestination, SetOpenActionNamedDestination