# GrapeCity.Documents.Word.CustomPropertyCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_CustomPropertyCollection" data-uid="GrapeCity.Documents.Word.CustomPropertyCollection" class="text-break">CustomPropertyCollection Class
</h1>
  <div class="markdown level0 summary"><p>A collection of custom document properties.</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.DocumentPropertyCollection.html">DocumentPropertyCollection</a></div>
    <div class="level2"><span class="xref">CustomPropertyCollection</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="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_CustomPropertyCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class CustomPropertyCollection : DocumentPropertyCollection, IEnumerable&lt;DocumentProperty&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class CustomPropertyCollection
    Inherits DocumentPropertyCollection
    Implements IEnumerable(Of DocumentProperty), 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_CustomPropertyCollection_Add_System_String_System_Boolean_" data-uid="GrapeCity.Documents.Word.CustomPropertyCollection.Add(System.String,System.Boolean)">
          <a class="xref" href="GrapeCity.Documents.Word.CustomPropertyCollection.Add.html#GrapeCity_Documents_Word_CustomPropertyCollection_Add_System_String_System_Boolean_">Add(string, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a document property of the <a class="xref" href="GrapeCity.Documents.Word.PropertyType.html#GrapeCity_Documents_Word_PropertyType_Boolean">Boolean</a> data type into the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_CustomPropertyCollection_Add_System_String_System_DateTime_" data-uid="GrapeCity.Documents.Word.CustomPropertyCollection.Add(System.String,System.DateTime)">
          <a class="xref" href="GrapeCity.Documents.Word.CustomPropertyCollection.Add.html#GrapeCity_Documents_Word_CustomPropertyCollection_Add_System_String_System_DateTime_">Add(string, DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a document property of the <a class="xref" href="GrapeCity.Documents.Word.PropertyType.html#GrapeCity_Documents_Word_PropertyType_DateTime">DateTime</a> data type into the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_CustomPropertyCollection_Add_System_String_System_Double_" data-uid="GrapeCity.Documents.Word.CustomPropertyCollection.Add(System.String,System.Double)">
          <a class="xref" href="GrapeCity.Documents.Word.CustomPropertyCollection.Add.html#GrapeCity_Documents_Word_CustomPropertyCollection_Add_System_String_System_Double_">Add(string, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a document property of the <a class="xref" href="GrapeCity.Documents.Word.PropertyType.html#GrapeCity_Documents_Word_PropertyType_Double">Double</a> data type into the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_CustomPropertyCollection_Add_System_String_System_Int32_" data-uid="GrapeCity.Documents.Word.CustomPropertyCollection.Add(System.String,System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Word.CustomPropertyCollection.Add.html#GrapeCity_Documents_Word_CustomPropertyCollection_Add_System_String_System_Int32_">Add(string, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a document property of the <a class="xref" href="GrapeCity.Documents.Word.PropertyType.html#GrapeCity_Documents_Word_PropertyType_Number">Number</a> data type into the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_CustomPropertyCollection_Add_System_String_System_String_" data-uid="GrapeCity.Documents.Word.CustomPropertyCollection.Add(System.String,System.String)">
          <a class="xref" href="GrapeCity.Documents.Word.CustomPropertyCollection.Add.html#GrapeCity_Documents_Word_CustomPropertyCollection_Add_System_String_System_String_">Add(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a document property of the <a class="xref" href="GrapeCity.Documents.Word.PropertyType.html#GrapeCity_Documents_Word_PropertyType_String">String</a> data type into the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_CustomPropertyCollection_Clear" data-uid="GrapeCity.Documents.Word.CustomPropertyCollection.Clear">
          <a class="xref" href="GrapeCity.Documents.Word.CustomPropertyCollection.Clear.html#GrapeCity_Documents_Word_CustomPropertyCollection_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Clears all properties from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_CustomPropertyCollection_Remove_System_String_" data-uid="GrapeCity.Documents.Word.CustomPropertyCollection.Remove(System.String)">
          <a class="xref" href="GrapeCity.Documents.Word.CustomPropertyCollection.Remove.html#GrapeCity_Documents_Word_CustomPropertyCollection_Remove_System_String_">Remove(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes a document property with the specified name from the collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
