[]
Represents a collection of bookmarks.
public class Bookmarks : IEnumerable<Bookmark>, IEnumerable
Use the Bookmarks property to get a list of all bookmarks in the document.
The code below loads all bookmarks in a tree.
private void LoadBookmarks(XHTMLBookmarkItem item)
{
_tree.Nodes.Clear();
foreach (Bookmark bookmark in item.Bookmarks)
{
TreeNode node = _tree.Nodes.Add(bookmark.Name);
node.Tag = bookmark;
}
}
| Name | Description |
|---|---|
| Count | Gets the number of bookmarks in the collection. |
| this[int] | Gets the bookmark at the specified index. |