Editor for WinForms | ComponentOne
C1.Win.C1Editor.4.5.2 Assembly / C1.Win.C1Editor.UICustomization Namespace / XHTMLBookmarkItem Class
Members Example

In This Topic
    XHTMLBookmarkItem Class
    In This Topic
    Provides bookmark data to use in custom edit dialogs.
    Object Model
    XHTMLBookmarkItem Class
    Syntax
    'Declaration
     
    Public Class XHTMLBookmarkItem 
       Inherits XHTMLItemBase
    public class XHTMLBookmarkItem : XHTMLItemBase 
    Remarks

    Implementing a custom Bookmark dialog, you will receive an instance of the XHTMLBookmarkItem class in the IBookmarkItemDialog.BindData method. Use it to bind the data to the dialog's UI.

    Example
    The code below binds data in the XHTMLBookmarkItem item to GUI controls of a custom dialog form.
    void IBookmarkItemDialog.BindData(XHTMLBookmarkItem item)
    {
        _tbName.DataBindings.Add("Text", item, "Name");
        LoadBookmarks(item);
        ButtonOKEnabledChanged(this, EventArgs.Empty);
    }
                
    private void LoadBookmarks(XHTMLBookmarkItem item)
    {
        _tree.Nodes.Clear();
        foreach (Bookmark bookmark in item.Bookmarks)
        {
            TreeNode node = _tree.Nodes.Add(bookmark.Name);
            node.Tag = bookmark;
        }
        UpdateToolbarState();
    }
    Inheritance Hierarchy

    System.Object
       C1.Win.C1Editor.UICustomization.XHTMLItemBase
          C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem

    See Also