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)
Collection is read-only.
|
void |
clear()
Collection is read-only.
|
boolean |
contains(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,Object> value)
Determines whether a destination is in collection or not.
|
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)
Collection is read-only.
|
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 a destination is in collection or not.
value - The value to find.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)
Collection is read-only. Always throws NotSupportedException exception.
item - not supported yet.public void clear()
Collection is read-only. Always throws NotSupportedException exception.
Copyright © 2018 Aspose. All Rights Reserved.