public class BookmarksOutlineLevelCollection
extends java.lang.Object
implements java.lang.Iterable
To learn more, visit the Working with Bookmarks documentation article.
Key is a case-insensitive string bookmark name. Value is a int bookmark outline level.
Bookmark outline level may be a value from 0 to 9. Specify 0 and Word bookmark will not be displayed in the document outline. Specify 1 and Word bookmark will be displayed in the document outline at level 1; 2 for level 2 and so on.
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String name,
int outlineLevel)
Adds a bookmark to the collection.
|
void |
clear()
Removes all elements from the collection.
|
boolean |
contains(java.lang.String name)
Determines whether the collection contains a bookmark with the given name.
|
int |
get(int index)
Gets a bookmark outline level at the specified index.
|
int |
get(java.lang.String name)
|
int |
getCount()
Gets the number of elements contained in the collection.
|
int |
indexOfKey(java.lang.String name)
Returns the zero-based index of the specified bookmark in the collection.
|
java.util.Iterator |
iterator() |
void |
remove(java.lang.String name)
Removes a bookmark with the specified name from the collection.
|
void |
removeAt(int index)
Removes a bookmark at the specified index.
|
void |
set(int index,
int value)
Sets a bookmark outline level at the specified index.
|
void |
set(java.lang.String name,
int value)
|
public int getCount()
public int get(java.lang.String name)
name - Case-insensitive name of the bookmark.public void set(java.lang.String name,
int value)
name - Case-insensitive name of the bookmark.value - The outline level of the bookmark. Valid range is 0 to 9.public int get(int index)
index - Zero-based index of the bookmark.public void set(int index,
int value)
index - Zero-based index of the bookmark.value - The outline level of the bookmark. Valid range is 0 to 9.public void add(java.lang.String name,
int outlineLevel)
name - The case-insensitive name of the bookmark to add.outlineLevel - The outline level of the bookmark. Valid range is 0 to 9.public boolean contains(java.lang.String name)
name - Case-insensitive name of the bookmark to locate.public int indexOfKey(java.lang.String name)
name - The case-insensitive name of the bookmark.public void remove(java.lang.String name)
name - The case-insensitive name of the bookmark.public void removeAt(int index)
index - The zero based index.public void clear()
public java.util.Iterator iterator()
iterator in interface java.lang.Iterable