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
| Left | Tepi kiri rectangle hotspot |
|---|---|
| Top | Tepi atas rectangle hotspot |
| Width | Lebar dari persegi panjang hotspot |
| Height | Tinggi dari persegi panjang hotspot |
| DestID | DestID dari objek destination Menentukan tampilan link: 0 = Tanpa border 1 = Gambar border |
| Options |
Nilai kembalian
| 0 | Property DestID tidak valid Link annotation berhasil dibuat |
|---|---|
| 1 |