Represents a collection of bookmarks.
Namespace:
C1.Win.XmlEditor.UICustomizationAssembly: C1.Win.XmlEditor.2 (in C1.Win.XmlEditor.2.dll)
Syntax
| C# |
|---|
[DefaultMemberAttribute("Item")] public class Bookmarks : IEnumerable<Bookmark> |
| Visual Basic (Declaration) |
|---|
<DefaultMemberAttribute("Item")> _ Public Class Bookmarks _ Implements IEnumerable(Of Bookmark) |
Remarks
Use the Bookmarks property to get a list of all bookmarks in the document.
Examples
The code below loads all bookmarks in a tree.
Copy CodeC#
privatevoid LoadBookmarks(XHTMLBookmarkItem item) { _tree.Nodes.Clear(); foreach (Bookmark bookmark in item.Bookmarks) { TreeNode node = _tree.Nodes.Add(bookmark.Name); node.Tag = bookmark; } } |