# C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem" data-uid="C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem" class="text-break">XHTMLBookmarkItem Class
</h1>
  <div class="markdown level0 summary"><p>Provides bookmark data to use in custom edit dialogs.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLItemBase.html">XHTMLItemBase</a></div>
    <div class="level2"><span class="xref">XHTMLBookmarkItem</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.C1Editor.UICustomization.html">C1.Win.C1Editor.UICustomization</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.C1Editor.4.8.dll</h6>
  <h5 id="C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class XHTMLBookmarkItem : XHTMLItemBase</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class XHTMLBookmarkItem
    Inherits XHTMLItemBase</code></pre>
  </div>
  <h5 id="C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>Implementing a custom Bookmark dialog, you will receive an instance of the XHTMLBookmarkItem class in the <a class="xref" href="C1.Win.C1Editor.UICustomization.IBookmarkItemDialog.BindData.html#C1_Win_C1Editor_UICustomization_IBookmarkItemDialog_BindData_C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_">BindData(XHTMLBookmarkItem)</a> method. 
             Use it to bind the data to the dialog's UI.</p>
</div>
  <h5 id="C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_examples"><strong>Examples</strong></h5>
  <p>The code below binds data in the <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem.html">XHTMLBookmarkItem</a> item to GUI controls of a custom dialog form.</p>
<pre><code class="lang-csharp">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();
}</code></pre>

  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_Bookmarks" data-uid="C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem.Bookmarks">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem.Bookmarks.html#C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_Bookmarks">Bookmarks</a>
        </td>
        <td class="markdown level1 summary"><p>List of all bookmarks of the document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_IsEmpty" data-uid="C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem.IsEmpty">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem.IsEmpty.html#C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_IsEmpty">IsEmpty</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a Boolean value indicating whether the link does not have inner text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_Name" data-uid="C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem.Name">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem.Name.html#C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_Name">Name</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies the name of the bookmark.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_Text" data-uid="C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem.Text">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem.Text.html#C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets bookmark text.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_ApplyChanges" data-uid="C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem.ApplyChanges">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem.ApplyChanges.html#C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_ApplyChanges">ApplyChanges()</a>
        </td>
        <td class="markdown level1 summary"><p>Applies changes made in a custom Bookmarks dialog.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_BuildXml" data-uid="C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem.BuildXml">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem.BuildXml.html#C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_BuildXml">BuildXml()</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_CheckCurrentBookmark" data-uid="C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem.CheckCurrentBookmark">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem.CheckCurrentBookmark.html#C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_CheckCurrentBookmark">CheckCurrentBookmark()</a>
        </td>
        <td class="markdown level1 summary"><p>Checks current bookmark for name validity and uniqueness.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_GetNodeTemplate" data-uid="C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem.GetNodeTemplate">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem.GetNodeTemplate.html#C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_GetNodeTemplate">GetNodeTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_ParseSourceNode" data-uid="C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem.ParseSourceNode">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem.ParseSourceNode.html#C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_ParseSourceNode">ParseSourceNode()</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_StateEqual_C1_Win_C1Editor_UICustomization_XHTMLItemBase_" data-uid="C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem.StateEqual(C1.Win.C1Editor.UICustomization.XHTMLItemBase)">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem.StateEqual.html#C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_StateEqual_C1_Win_C1Editor_UICustomization_XHTMLItemBase_">StateEqual(XHTMLItemBase)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if specified item is equal to the anchor.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
