[]
        
(Showing Draft Content)

C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem

XHTMLBookmarkItem Class

Provides bookmark data to use in custom edit dialogs.

Inheritance
XHTMLBookmarkItem
Namespace: C1.Win.C1Editor.UICustomization
Assembly: C1.Win.C1Editor.4.8.dll
Syntax
public class XHTMLBookmarkItem : XHTMLItemBase
Remarks

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

Examples

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();
}

Properties

Name Description
Bookmarks

List of all bookmarks of the document.

IsEmpty

Returns a Boolean value indicating whether the link does not have inner text.

Name

Specifies the name of the bookmark.

Text

Gets bookmark text.

Methods

Name Description
ApplyChanges()

Applies changes made in a custom Bookmarks dialog.

BuildXml()

For internal use.

CheckCurrentBookmark()

Checks current bookmark for name validity and uniqueness.

GetNodeTemplate()

For internal use.

ParseSourceNode()

For internal use.

StateEqual(XHTMLItemBase)

Returns true if specified item is equal to the anchor.