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

In This Topic
    Name Property (Bookmark)
    In This Topic
    The bookmark name.
    Syntax
    'Declaration
     
    Public ReadOnly Property Name As System.String
    public System.string Name {get;}
    Remarks
    The following bookmark's name is "bm1": ]]>
    Example
    The code below loads all bookmarks in a tree using bookmark name.
    private void LoadBookmarks(XHTMLBookmarkItem item)
    {
        _tree.Nodes.Clear();
        foreach (Bookmark bookmark in item.Bookmarks)
        {
            TreeNode node = _tree.Nodes.Add(bookmark.Name);
            node.Tag = bookmark;
        }
     }
    See Also