## DestinationCollection class

Class represents the collection of all destinations (a name tree mapping name strings to destinations (see 12.3.2.3, "Named Destinations") and (see 7.7.4, "Name Dictionary")) in the pdf document.

```csharp
public sealed class DestinationCollection : ICollection<KeyValuePair<string, object>>
```

## Properties

| Name | Description |
| --- | --- |
| [Count](../../aspose.pdf/destinationcollection/count/) { get; } | Gets the number of elements contained in the collection. |
| [IsReadOnly](../../aspose.pdf/destinationcollection/isreadonly/) { get; } | Gets a value indicating whether the collection is read-only. |
| [Item](../../aspose.pdf/destinationcollection/item/) { get; } | Gets the destination object by index. |

## Methods

| Name | Description |
| --- | --- |
| [Add](../../aspose.pdf/destinationcollection/add/)(KeyValuePair&lt;string, object&gt;) | Adds the specified item. Collection is read-only. Always throws NotSupportedException exception. |
| [Clear](../../aspose.pdf/destinationcollection/clear/)() | Collection is read-only. Always throws NotSupportedException exception. |
| [Contains](../../aspose.pdf/destinationcollection/contains/)(KeyValuePair&lt;string, object&gt;) | Determines whether this instance contains the object. |
| [CopyTo](../../aspose.pdf/destinationcollection/copyto/)(KeyValuePair&lt;string, object&gt;[], int) |  |
| [GetEnumerator](../../aspose.pdf/destinationcollection/getenumerator/)() | Returns the enumerator. |
| [GetExplicitDestination](../../aspose.pdf/destinationcollection/getexplicitdestination/)(string, bool) | Returns the explicit destination by the name. |
| [GetPageNumber](../../aspose.pdf/destinationcollection/getpagenumber/)(string, bool) | Returns the page number of destination by the name. |
| [IndexOf](../../aspose.pdf/destinationcollection/indexof/)(KeyValuePair&lt;string, object&gt;) | Returns the index of destination in collection. |
| [Remove](../../aspose.pdf/destinationcollection/remove/)(KeyValuePair&lt;string, object&gt;) | Removes the specified item. Collection is read-only. Always throws NotSupportedException exception. |

### See Also

* namespace [Aspose.Pdf](../../aspose.pdf/)
* assembly [Aspose.PDF](../../)


