# GrapeCity.Documents.Word.BookmarkCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_BookmarkCollection" data-uid="GrapeCity.Documents.Word.BookmarkCollection" class="text-break">BookmarkCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of <a class="xref" href="GrapeCity.Documents.Word.Bookmark.html">Bookmark</a> elements.</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="GrapeCity.Documents.Word.ContentCollection-1.html">ContentCollection</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.Bookmark.html">Bookmark</a>&gt;</div>
    <div class="level2"><a class="xref" href="GrapeCity.Documents.Word.ContentRangeCollection-1.html">ContentRangeCollection</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.Bookmark.html">Bookmark</a>&gt;</div>
    <div class="level3"><span class="xref">BookmarkCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="GrapeCity.Documents.Word.IContentList-1.html">IContentList</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.Bookmark.html">Bookmark</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.Bookmark.html">Bookmark</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.Bookmark.html">Bookmark</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.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="GrapeCity.Documents.Word.html">GrapeCity.Documents.Word</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Word.dll</h6>
  <h5 id="GrapeCity_Documents_Word_BookmarkCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class BookmarkCollection : ContentRangeCollection&lt;Bookmark&gt;, IContentList&lt;Bookmark&gt;, IReadOnlyList&lt;Bookmark&gt;, IReadOnlyCollection&lt;Bookmark&gt;, IEnumerable&lt;Bookmark&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class BookmarkCollection
    Inherits ContentRangeCollection(Of Bookmark)
    Implements IContentList(Of Bookmark), IReadOnlyList(Of Bookmark), IReadOnlyCollection(Of Bookmark), IEnumerable(Of Bookmark), IEnumerable</code></pre>
  </div>
  <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="GrapeCity_Documents_Word_BookmarkCollection_Item_System_String_" data-uid="GrapeCity.Documents.Word.BookmarkCollection.Item(System.String)">
          <a class="xref" href="GrapeCity.Documents.Word.BookmarkCollection.Item.html#GrapeCity_Documents_Word_BookmarkCollection_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a bookmark from the collection by its name.</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="GrapeCity_Documents_Word_BookmarkCollection_Add_System_String_" data-uid="GrapeCity.Documents.Word.BookmarkCollection.Add(System.String)">
          <a class="xref" href="GrapeCity.Documents.Word.BookmarkCollection.Add.html#GrapeCity_Documents_Word_BookmarkCollection_Add_System_String_">Add(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Word.Bookmark.html">Bookmark</a> into the collection at the <a class="xref" href="GrapeCity.Documents.Word.RangeLocation.html#GrapeCity_Documents_Word_RangeLocation_Content">Content</a> position.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_BookmarkCollection_Contains_System_String_" data-uid="GrapeCity.Documents.Word.BookmarkCollection.Contains(System.String)">
          <a class="xref" href="GrapeCity.Documents.Word.BookmarkCollection.Contains.html#GrapeCity_Documents_Word_BookmarkCollection_Contains_System_String_">Contains(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether the collection contains a bookmark with specified name.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_BookmarkCollection_Insert_System_String_GrapeCity_Documents_Word_RangeLocation_" data-uid="GrapeCity.Documents.Word.BookmarkCollection.Insert(System.String,GrapeCity.Documents.Word.RangeLocation)">
          <a class="xref" href="GrapeCity.Documents.Word.BookmarkCollection.Insert.html#GrapeCity_Documents_Word_BookmarkCollection_Insert_System_String_GrapeCity_Documents_Word_RangeLocation_">Insert(string, RangeLocation)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts a <a class="xref" href="GrapeCity.Documents.Word.Bookmark.html">Bookmark</a> into the collection at the specified position.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_BookmarkCollection_TryGetValue_System_String_GrapeCity_Documents_Word_Bookmark__" data-uid="GrapeCity.Documents.Word.BookmarkCollection.TryGetValue(System.String,GrapeCity.Documents.Word.Bookmark@)">
          <a class="xref" href="GrapeCity.Documents.Word.BookmarkCollection.TryGetValue.html#GrapeCity_Documents_Word_BookmarkCollection_TryGetValue_System_String_GrapeCity_Documents_Word_Bookmark__">TryGetValue(string, out Bookmark)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a bookmark from the collection by its name.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
