[]
Provides bookmark data to use in custom edit dialogs.
public class XHTMLBookmarkItem : XHTMLItemBase
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.
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();
}
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. |
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. |