Editor for WinForms | ComponentOne
C1.Win.C1Editor.4.8 Assembly / C1.Win.C1Editor.UICustomization Namespace / XHTMLBookmarkItem Class / Bookmarks Property
Example

In This Topic
    Bookmarks Property (XHTMLBookmarkItem)
    In This Topic
    List of all bookmarks of the document.
    Syntax
    'Declaration
     
    Public ReadOnly Property Bookmarks As Bookmarks
    public Bookmarks Bookmarks {get;}
    Remarks
    Use the Bookmarks property to get a list of all bookmarks in the document.
    Example
    The code below loads all bookmarks in a tree.
    private void LoadBookmarks()
    {
        _tree.Nodes.Clear();
        foreach (Bookmark bookmark in Item.Bookmarks)
        {
            TreeNode node = _tree.Nodes.Add(bookmark.Name);
            node.Tag = bookmark;
        }
     }
    See Also