DestinationCollection
Ikhtisar
DestinationCollection adalah kelas dalam Aspose.PDF FOSS untuk .NET. Mewarisi dari: System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, object>>.
Koleksi named-destination diekspos sebagai IEnumerable<KeyValuePair<string, object».
Kelas ini menyediakan 10 metode untuk bekerja dengan objek DestinationCollection dalam program .NET.
Metode yang tersedia meliputi: Add, Clear, Contains, CopyTo, GetEnumerator, GetExplicitDestination, GetPageNumber, IndexOf, Remove.
Semua anggota publik dapat diakses oleh aplikasi .NET mana pun setelah menginstal paket Aspose.PDF FOSS untuk .NET.
Properti: Count, IsReadOnly.
Properti
| Name | Type | Access | Description |
|---|---|---|---|
Count | int | Read | Jumlah tujuan (entri pohon named-destination ditambah entri overlay yang ditambahkan secara lokal). |
IsReadOnly | bool | Read | Selalu false: pemanggil dapat memperluas melalui overlay lokal. |
Metode
| Signature | Description |
|---|---|
GetPageNumber(destinameName: string, useCache: bool) | Dapatkan nomor halaman berbasis-1 untuk tujuan bernama. |
GetPageNumber(destinameName: string) | Overload kenyamanan yang selalu menyimpan cache. |
GetExplicitDestination(destinameName: string, useCache: bool) | Menyelesaikan tujuan bernama menjadi ExplicitDestination; mengembalikan null bila tidak ditemukan. |
Add(item: System.Collections.Generic.KeyValuePair<string, object>) | Tambahkan pasangan (nama → tujuan) ke overlay lokal. |
Clear() | Hapus semua entri overlay. |
Contains(value: System.Collections.Generic.KeyValuePair<string, object>) | Apakah nilai ada dalam snapshot (tujuan bernama atau overlay). |
CopyTo(array: System.Collections.Generic.KeyValuePair<string, object>[], arrayIndex: int) | Salin snapshot ke dalam array mulai dari arrayIndex. |
IndexOf(value: System.Collections.Generic.KeyValuePair<string, object>) | Indeks nilai dalam snapshot, atau -1. |
Remove(item: System.Collections.Generic.KeyValuePair<string, object>) | Hapus entri overlay yang cocok dengan item. |
GetEnumerator() | Memanggil GetEnumerator pada instance DestinationCollection ini. |