public final class OutlineCollection extends Outlines
Represents document outline hierarchy.
Modifier and Type | Method and Description |
---|---|
void |
add(OutlineItemCollection outline)
Adds outline item to collection.
|
void |
clear()
Clears all items from the collection.
|
boolean |
contains(OutlineItemCollection item)
Not supported yet.
|
void |
copyTo(OutlineItemCollection[] array,
int index)
Copies the outline items to an System.Array, starting at a particular System.Array index.
|
void |
delete()
Deletes all outline items from the document outline.
|
void |
delete(String name)
Deletes the outline item with specified title from the document outline.
|
OutlineItemCollection |
get_Item(int index)
Gets outline item from collection by index.
|
OutlineItemCollection |
getFirst()
Gets an outline item representing the first top-level item in the outline.
|
OutlineItemCollection |
getLast()
Gets an outline item representing the last top-level item in the outline.
|
Object |
getSyncRoot()
Gets an object that can be used to synchronize access to this collection.
|
int |
getVisibleCount()
Count is the sum of the number of visible descendent outline items at all levels.
|
boolean |
hasNext() |
boolean |
isReadOnly()
Gets a value indicating whether the collection is read-only.
|
boolean |
isSynchronized()
Gets a value indicating whether access to this collection is synchronized (thread safe).
|
Iterator<OutlineItemCollection> |
iterator()
Returns an enumerator that iterates through the collection.
|
OutlineItemCollection |
next() |
void |
remove(int index)
Remove item by index.
|
boolean |
remove(OutlineItemCollection item)
Not supported yet.
|
int |
size()
Gets the total number of outline items (bookmarks) at all levels of the document outline.
|
iterator_Rename_Namesake
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public boolean hasNext()
public OutlineItemCollection next()
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.
getVisibleCount
in class Outlines
public int size()
Gets the total number of outline items (bookmarks) at all levels of the document outline.
public OutlineItemCollection getFirst()
Gets an outline item representing the first top-level item in the outline.
public OutlineItemCollection getLast()
Gets an outline item representing the last top-level item in the outline.
public boolean isSynchronized()
Gets a value indicating whether access to this collection is synchronized (thread safe).
public Object getSyncRoot()
Gets an object that can be used to synchronize access to this collection.
public boolean isReadOnly()
Gets a value indicating whether the collection is read-only.
isReadOnly
in class Outlines
public void add(OutlineItemCollection outline)
Adds outline item to collection.
public void delete()
Deletes all outline items from the document outline.
public void delete(String name)
Deletes the outline item with specified title from the document outline.
name
- The title of outline item to be deletedpublic void copyTo(OutlineItemCollection[] array, int index)
Copies the outline items to an System.Array, starting at a particular System.Array index.
public Iterator<OutlineItemCollection> iterator()
Returns an enumerator that iterates through the collection.
iterator
in interface Iterable<OutlineItemCollection>
iterator
in class Outlines
public void clear()
Clears all items from the collection.
public boolean contains(OutlineItemCollection item)
Checks does collection contains given item.
public boolean remove(OutlineItemCollection item)
Always throws NotImplementedException
public final void remove(int index)
Remove item by index.
index
- Index of the item to be removed.public OutlineItemCollection get_Item(int index)
Gets outline item from collection by index.
index
- Index of requested item.