AddLinkToDestination

Anotasi dan tautan hotspot, properti halaman

Deskripsi

Menambahkan rectangle hotspot yang bisa diklik ke halaman terpilih, yang menuju halaman lain di dokumen yang sama. Halaman target, posisi, dan level zoom ditentukan oleh objek destination yang bisa dibuat dengan fungsi NewDestination

Gunakan fungsi SetAnnotBorderColor untuk mengubah warna border hotspot

Sintaks

Delphi

Function TPDFlib.AddLinkToDestination(Left, Top, Width, Height: Double; DestID, Options: Integer): Integer;

ActiveX

Function PDFlib::AddLinkToDestination(Left As Double, Top As Double, Width As Double, Height As Double, DestID As Long, Options As Long) As Long

DLL

int DLAddLinkToDestination(int InstanceID, double Left, double Top, double Width, double Height, int DestID, int Options);

Parameter

LeftTepi kiri rectangle hotspot
TopTepi atas rectangle hotspot
WidthLebar dari persegi panjang hotspot
HeightTinggi dari persegi panjang hotspot
DestIDDestID dari objek destination Menentukan tampilan link: 0 = Tanpa border 1 = Gambar border
Options

Nilai kembalian

0Property DestID tidak valid Link annotation berhasil dibuat
1