# C1.Win.C1Editor.UICustomization.Bookmarks

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_C1Editor_UICustomization_Bookmarks" data-uid="C1.Win.C1Editor.UICustomization.Bookmarks" class="text-break">Bookmarks Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of bookmarks.</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"><span class="xref">Bookmarks</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="C1.Win.C1Editor.UICustomization.Bookmark.html">Bookmark</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></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_Bookmarks_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class Bookmarks : IEnumerable&lt;Bookmark&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class Bookmarks
    Implements IEnumerable(Of Bookmark), IEnumerable</code></pre>
  </div>
  <h5 id="C1_Win_C1Editor_UICustomization_Bookmarks_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>Use the <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem.Bookmarks.html#C1_Win_C1Editor_UICustomization_XHTMLBookmarkItem_Bookmarks">Bookmarks</a> property to get a list of all bookmarks in the document.</p>
</div>
  <h5 id="C1_Win_C1Editor_UICustomization_Bookmarks_examples"><strong>Examples</strong></h5>
  <p>The code below loads all bookmarks in a tree.</p>
<pre><code class="lang-csharp">private void LoadBookmarks(XHTMLBookmarkItem item)
{
    _tree.Nodes.Clear();
    foreach (Bookmark bookmark in item.Bookmarks)
    {
        TreeNode node = _tree.Nodes.Add(bookmark.Name);
        node.Tag = bookmark;
    }
 }</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_Bookmarks_Count" data-uid="C1.Win.C1Editor.UICustomization.Bookmarks.Count">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.Bookmarks.Count.html#C1_Win_C1Editor_UICustomization_Bookmarks_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of bookmarks in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_Bookmarks_Item_System_Int32_" data-uid="C1.Win.C1Editor.UICustomization.Bookmarks.Item(System.Int32)">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.Bookmarks.Item.html#C1_Win_C1Editor_UICustomization_Bookmarks_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the bookmark at the specified index.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
