# GrapeCity.Documents.Word.CommentCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_CommentCollection" data-uid="GrapeCity.Documents.Word.CommentCollection" class="text-break">CommentCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of <a class="xref" href="GrapeCity.Documents.Word.Comment.html">Comment</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.Comment.html">Comment</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.Comment.html">Comment</a>&gt;</div>
    <div class="level3"><span class="xref">CommentCollection</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.Comment.html">Comment</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.Comment.html">Comment</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.Comment.html">Comment</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.Comment.html">Comment</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_CommentCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class CommentCollection : ContentRangeCollection&lt;Comment&gt;, IContentList&lt;Comment&gt;, IReadOnlyList&lt;Comment&gt;, IReadOnlyCollection&lt;Comment&gt;, IEnumerable&lt;Comment&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class CommentCollection
    Inherits ContentRangeCollection(Of Comment)
    Implements IContentList(Of Comment), IReadOnlyList(Of Comment), IReadOnlyCollection(Of Comment), IEnumerable(Of Comment), IEnumerable</code></pre>
  </div>
  <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_CommentCollection_Add_System_String_System_String_" data-uid="GrapeCity.Documents.Word.CommentCollection.Add(System.String,System.String)">
          <a class="xref" href="GrapeCity.Documents.Word.CommentCollection.Add.html#GrapeCity_Documents_Word_CommentCollection_Add_System_String_System_String_">Add(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Word.Comment.html">Comment</a> to this 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_CommentCollection_Add_System_String_System_String_System_DateTime_" data-uid="GrapeCity.Documents.Word.CommentCollection.Add(System.String,System.String,System.DateTime)">
          <a class="xref" href="GrapeCity.Documents.Word.CommentCollection.Add.html#GrapeCity_Documents_Word_CommentCollection_Add_System_String_System_String_System_DateTime_">Add(string, string, DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Word.Comment.html">Comment</a> to this collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_CommentCollection_Add_System_String_System_String_System_DateTime_System_String_" data-uid="GrapeCity.Documents.Word.CommentCollection.Add(System.String,System.String,System.DateTime,System.String)">
          <a class="xref" href="GrapeCity.Documents.Word.CommentCollection.Add.html#GrapeCity_Documents_Word_CommentCollection_Add_System_String_System_String_System_DateTime_System_String_">Add(string, string, DateTime, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Documents.Word.Comment.html">Comment</a> to this collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_CommentCollection_Contains_System_Int64_" data-uid="GrapeCity.Documents.Word.CommentCollection.Contains(System.Int64)">
          <a class="xref" href="GrapeCity.Documents.Word.CommentCollection.Contains.html#GrapeCity_Documents_Word_CommentCollection_Contains_System_Int64_">Contains(long)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whether this collection contains a comment with the specified ID.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_CommentCollection_GetByID_System_Int64_" data-uid="GrapeCity.Documents.Word.CommentCollection.GetByID(System.Int64)">
          <a class="xref" href="GrapeCity.Documents.Word.CommentCollection.GetByID.html#GrapeCity_Documents_Word_CommentCollection_GetByID_System_Int64_">GetByID(long)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a comment from this collection by its ID.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_CommentCollection_Insert_GrapeCity_Documents_Word_RangeLocation_" data-uid="GrapeCity.Documents.Word.CommentCollection.Insert(GrapeCity.Documents.Word.RangeLocation)">
          <a class="xref" href="GrapeCity.Documents.Word.CommentCollection.Insert.html#GrapeCity_Documents_Word_CommentCollection_Insert_GrapeCity_Documents_Word_RangeLocation_">Insert(RangeLocation)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts a <a class="xref" href="GrapeCity.Documents.Word.Comment.html">Comment</a> into this collection at the specified location.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_CommentCollection_Insert_System_String_System_String_GrapeCity_Documents_Word_RangeLocation_" data-uid="GrapeCity.Documents.Word.CommentCollection.Insert(System.String,System.String,GrapeCity.Documents.Word.RangeLocation)">
          <a class="xref" href="GrapeCity.Documents.Word.CommentCollection.Insert.html#GrapeCity_Documents_Word_CommentCollection_Insert_System_String_System_String_GrapeCity_Documents_Word_RangeLocation_">Insert(string, string, RangeLocation)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts a <a class="xref" href="GrapeCity.Documents.Word.Comment.html">Comment</a> into this collection at the specified location.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_CommentCollection_Insert_System_String_System_String_System_DateTime_GrapeCity_Documents_Word_RangeLocation_" data-uid="GrapeCity.Documents.Word.CommentCollection.Insert(System.String,System.String,System.DateTime,GrapeCity.Documents.Word.RangeLocation)">
          <a class="xref" href="GrapeCity.Documents.Word.CommentCollection.Insert.html#GrapeCity_Documents_Word_CommentCollection_Insert_System_String_System_String_System_DateTime_GrapeCity_Documents_Word_RangeLocation_">Insert(string, string, DateTime, RangeLocation)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts a <a class="xref" href="GrapeCity.Documents.Word.Comment.html">Comment</a> into this collection at the specified location.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_CommentCollection_Insert_System_String_System_String_System_DateTime_System_String_GrapeCity_Documents_Word_RangeLocation_" data-uid="GrapeCity.Documents.Word.CommentCollection.Insert(System.String,System.String,System.DateTime,System.String,GrapeCity.Documents.Word.RangeLocation)">
          <a class="xref" href="GrapeCity.Documents.Word.CommentCollection.Insert.html#GrapeCity_Documents_Word_CommentCollection_Insert_System_String_System_String_System_DateTime_System_String_GrapeCity_Documents_Word_RangeLocation_">Insert(string, string, DateTime, string, RangeLocation)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts a <a class="xref" href="GrapeCity.Documents.Word.Comment.html">Comment</a> into this collection at the specified location.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
