public final class DestinationCollection extends Object implements Iterable<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,Object>>
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.
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,Object> item)
Adds the specified item.
|
void |
clear()
Collection is read-only.
|
boolean |
contains(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,Object> value)
Determines whether this instance contains the object.
|
void |
copyTo(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,Object>[] array,
int arrayIndex)
Copies the elements of the collection to an Array, starting at a particular Array index.
|
com.aspose.ms.System.Collections.Generic.KeyValuePair<String,Object> |
get_Item(int index)
Gets the destination object by index.
|
ExplicitDestination |
getExplicitDestination(String destinameName,
boolean useCache)
Returns the explicit destination by the name.
|
int |
getPageNumber(String destinameName,
boolean useCache)
Returns the page number of destination by the name.
|
int |
indexOf(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,Object> value)
Returns the index of destination in collection.
|
boolean |
isReadOnly()
Gets a value indicating whether the collection is read-only.
|
com.aspose.ms.System.Collections.IEnumerator<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,Object>> |
iterator()
Returns the enumerator.
|
boolean |
remove(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,Object> item)
Removes the specified item.
|
int |
size()
Gets the number of elements contained in the collection.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic int size()
Gets the number of elements contained in the collection.
public boolean isReadOnly()
Gets a value indicating whether the collection is read-only.
public com.aspose.ms.System.Collections.Generic.KeyValuePair<String,Object> get_Item(int index)
Gets the destination object by index.
index - The index of destination to get.public int getPageNumber(String destinameName, boolean useCache)
Returns the page number of destination by the name.
destinameName - The name of destination.useCache - Determines whether cached version of collection is used or not.public ExplicitDestination getExplicitDestination(String destinameName, boolean useCache)
Returns the explicit destination by the name.
destinameName - The name of destination.useCache - Determines whether cached version of collection is used or not.public com.aspose.ms.System.Collections.IEnumerator<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,Object>> iterator()
Returns the enumerator.
public int indexOf(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,Object> value)
Returns the index of destination in collection.
value - The value to find.public boolean contains(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,Object> value)
Determines whether this instance contains the object.
value - The value to find.true if [contains] [the specified value]; otherwise, false.public void copyTo(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,Object>[] array, int arrayIndex)
Copies the elements of the collection to an Array, starting at a particular Array index.
array - The one-dimensional Array that is the destination of the elements copied from collectionarrayIndex - The zero-based index in array at which copying begins.public void add(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,Object> item)
Adds the specified item. Collection is read-only. Always throws NotSupportedException exception.
item - The item.com.aspose.ms.System.NotSupportedException - not supported yet.public void clear()
Collection is read-only. Always throws NotSupportedException exception.
public boolean remove(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,Object> item)
Removes the specified item. Collection is read-only. Always throws NotSupportedException exception.
not supportd yet.item - The item.com.aspose.ms.System.NotSupportedException - en exceptionCopyright © 2025 Aspose. All Rights Reserved.