# GrapeCity.Documents.Word.DocumentPropertyCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_DocumentPropertyCollection" data-uid="GrapeCity.Documents.Word.DocumentPropertyCollection" class="text-break">DocumentPropertyCollection Class
</h1>
  <div class="markdown level0 summary"><p>Base class for the <a class="xref" href="GrapeCity.Documents.Word.CustomPropertyCollection.html">CustomPropertyCollection</a> and <a class="xref" href="GrapeCity.Documents.Word.BuiltInPropertyCollection.html">BuiltInPropertyCollection</a></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">DocumentPropertyCollection</span></div>
      <div class="level2"><a class="xref" href="GrapeCity.Documents.Word.BuiltInPropertyCollection.html">BuiltInPropertyCollection</a></div>
      <div class="level2"><a class="xref" href="GrapeCity.Documents.Word.CustomPropertyCollection.html">CustomPropertyCollection</a></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="GrapeCity.Documents.Word.DocumentProperty.html">DocumentProperty</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_DocumentPropertyCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DocumentPropertyCollection : IEnumerable&lt;DocumentProperty&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DocumentPropertyCollection
    Implements IEnumerable(Of DocumentProperty), 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_DocumentPropertyCollection_Count" data-uid="GrapeCity.Documents.Word.DocumentPropertyCollection.Count">
          <a class="xref" href="GrapeCity.Documents.Word.DocumentPropertyCollection.Count.html#GrapeCity_Documents_Word_DocumentPropertyCollection_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the number of properties in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_DocumentPropertyCollection_Item_System_String_" data-uid="GrapeCity.Documents.Word.DocumentPropertyCollection.Item(System.String)">
          <a class="xref" href="GrapeCity.Documents.Word.DocumentPropertyCollection.Item.html#GrapeCity_Documents_Word_DocumentPropertyCollection_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a document property by the case-insensitive 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_DocumentPropertyCollection_Contains_System_String_" data-uid="GrapeCity.Documents.Word.DocumentPropertyCollection.Contains(System.String)">
          <a class="xref" href="GrapeCity.Documents.Word.DocumentPropertyCollection.Contains.html#GrapeCity_Documents_Word_DocumentPropertyCollection_Contains_System_String_">Contains(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether a property with specified name exists in the document.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_DocumentPropertyCollection_TryGetValue_System_String_GrapeCity_Documents_Word_DocumentProperty__" data-uid="GrapeCity.Documents.Word.DocumentPropertyCollection.TryGetValue(System.String,GrapeCity.Documents.Word.DocumentProperty@)">
          <a class="xref" href="GrapeCity.Documents.Word.DocumentPropertyCollection.TryGetValue.html#GrapeCity_Documents_Word_DocumentPropertyCollection_TryGetValue_System_String_GrapeCity_Documents_Word_DocumentProperty__">TryGetValue(string, out DocumentProperty)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a document property by the case-insensitive name.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
