OutlineCollection

Inheritance: java.lang.Object, com.aspose.pdf.Outlines com.aspose.pdf.OutlineCollection, com.aspose.pdf.Outlines, com.aspose.pdf.OutlineCollection

All Implemented Interfaces: Iterable < OutlineItemCollection >

public final class OutlineCollection extends Outlines

Represents document outline hierarchy.

Methods

MethodDescription
addAdds outline item to collection.
clearClears all items from the collection.
containsNot supported yet. Checks does collection contains given item.
copyToCopies the outline items to an System.Array, starting at a particular System.Array index.
deleteDeletes all outline items from the document outline.
deleteDeletes all outline items from the document outline.
get_ItemGets outline item from collection by index.
getFirstGets an outline item representing the first top-level item in the outline.
getLastGets an outline item representing the last top-level item in the outline.
getSyncRootGets an object that can be used to synchronize access to this collection.
getVisibleCountCount is the sum of the number of visible descendent outline items at all levels. Note: please don’t confuse with Count which is number if items in collection.
hasNext
isReadOnlyGets a value indicating whether the collection is read-only.
isSynchronizedGets a value indicating whether access to this collection is synchronized (thread safe).
iteratorReturns an enumerator that iterates through the collection.
next
removeRemove item by index.
removeNot supported yet. Always throws exception
sizeGets the total number of outline items (bookmarks) at all levels of the document outline.

add

Adds outline item to collection.

clear

public void clear()

Clears all items from the collection.

contains

Not supported yet. Checks does collection contains given item.

copyTo

Copies the outline items to an System.Array, starting at a particular System.Array index.

delete

public void delete()

Deletes all outline items from the document outline.

delete

Deletes all outline items from the document outline.

get_Item

public OutlineItemCollection get_Item(int index)

Gets outline item from collection by index.

Parameters:

ParameterTypeDescription
indexIndex of requested item.

Returns: OutlineItemCollection object

getFirst

public OutlineItemCollection getFirst()

Gets an outline item representing the first top-level item in the outline.

Returns: OutlineItemCollection object

getLast

public OutlineItemCollection getLast()

Gets an outline item representing the last top-level item in the outline.

Returns: OutlineItemCollection object

getSyncRoot

public Object getSyncRoot()

Gets an object that can be used to synchronize access to this collection.

Returns: Object for synchronization

getVisibleCount

public int getVisibleCount()

Count is the sum of the number of visible descendent outline items at all levels. Note: please don’t confuse with Count which is number if items in collection.

Returns: int value

hasNext

public boolean hasNext()

isReadOnly

public boolean isReadOnly()

Gets a value indicating whether the collection is read-only.

Returns: boolean value

isSynchronized

public boolean isSynchronized()

Gets a value indicating whether access to this collection is synchronized (thread safe).

Returns: boolean value

iterator

public Iterator < OutlineItemCollection > iterator()

Returns an enumerator that iterates through the collection.

Returns: An System.Collections.IEnumerator object that can be used to iterate through the collection.

next

public OutlineItemCollection next()

remove

public final void remove(int index)

Remove item by index.

Parameters:

ParameterTypeDescription
indexIndex of the item to be removed.

remove

Not supported yet. Always throws exception

size

public int size()

Gets the total number of outline items (bookmarks) at all levels of the document outline.

Returns: int value